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 ItsDoot committed Feb 1, 2023
1 parent a651d24 commit 109463d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/path.rs
Original file line number Diff line number Diff line change
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 109463d

Please sign in to comment.