Add Eq & PartialEq to AssetPath (#6274)

Adds `Eq` and `ArtialEq` to `AssetPath` to make `AssetPath` usable inside HashMaps.
This commit is contained in:
Marlon 2022-10-17 14:01:53 +00:00
parent 5878a62c3f
commit bfd6285c3b

View file

@ -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>>,