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 Pietrek14 committed Dec 17, 2022
1 parent 492f4c4 commit 1b2ef77
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 1b2ef77

Please sign in to comment.