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] #[binrw]
#[brw(repr = u8)] #[brw(repr = u8)]
#[derive(Clone, Debug, PartialEq)] #[derive(Clone, Debug, PartialEq, Eq)]
pub enum Platform { pub enum Platform {
/// Windows and macOS /// Windows and macOS
Win32 = 0x0, 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. /// 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`. /// This handles calculating the correct dat and index filenames, mainly for `GameData`.
#[derive(Debug, Clone)] #[derive(Debug, Clone, Eq)]
pub struct Repository { pub struct Repository {
/// The folder name, such as "ex1". /// The folder name, such as "ex1".
pub name: String, pub name: String,
@ -35,8 +35,6 @@ pub struct Repository {
pub version: Option<String>, pub version: Option<String>,
} }
impl Eq for Repository {}
impl PartialEq for Repository { impl PartialEq for Repository {
fn eq(&self, other: &Self) -> bool { fn eq(&self, other: &Self) -> bool {
self.name == other.name self.name == other.name