Skip to content

Commit 1b2ef77

Browse files
zmarlonPietrek14
authored andcommitted
Add Eq & PartialEq to AssetPath (bevyengine#6274)
Adds `Eq` and `ArtialEq` to `AssetPath` to make `AssetPath` usable inside HashMaps.
1 parent 492f4c4 commit 1b2ef77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_asset/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::{
88
};
99

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

0 commit comments

Comments
 (0)