Skip to content

Commit

Permalink
Add Eq & PartialEq to AssetPath (bevyengine#6274)
Browse files Browse the repository at this point in the history
Adds `Eq` and `ArtialEq` to `AssetPath` to make `AssetPath` usable inside HashMaps.
  • Loading branch information
zmarlon authored and james7132 committed Oct 28, 2022
1 parent a1c7de2 commit aaffffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/path.rs
Expand Up @@ -8,7 +8,7 @@ use std::{
};

/// Represents a path to an asset in the file system.
#[derive(Debug, Hash, Clone, Serialize, Deserialize)]
#[derive(Debug, Eq, PartialEq, Hash, Clone, Serialize, Deserialize)]
pub struct AssetPath<'a> {
path: Cow<'a, Path>,
label: Option<Cow<'a, str>>,
Expand Down

0 comments on commit aaffffd

Please sign in to comment.