1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 03:37:47 +00:00

Remove manual Eq implementation for Repository

This commit is contained in:
Joshua Goins 2025-03-08 08:57:41 -05:00
parent 0b339886c9
commit bd111b6d53
2 changed files with 2 additions and 4 deletions

View file

@ -62,7 +62,7 @@ pub fn read_version(p: &Path) -> Option<String> {
#[binrw]
#[brw(repr = u8)]
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Platform {
/// Windows and macOS
Win32 = 0x0,

View file

@ -23,7 +23,7 @@ pub enum RepositoryType {
/// Encapsulates a directory of game data, such as "ex1". This data is also versioned.
/// This handles calculating the correct dat and index filenames, mainly for `GameData`.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Eq)]
pub struct Repository {
/// The folder name, such as "ex1".
pub name: String,
@ -35,8 +35,6 @@ pub struct Repository {
pub version: Option<String>,
}
impl Eq for Repository {}
impl PartialEq for Repository {
fn eq(&self, other: &Self) -> bool {
self.name == other.name