Add Eq & PartialEq to AssetPath (#6274)
Adds `Eq` and `ArtialEq` to `AssetPath` to make `AssetPath` usable inside HashMaps.
This commit is contained in:
parent
5878a62c3f
commit
bfd6285c3b
@ -8,7 +8,7 @@ use std::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
/// Represents a path to an asset in the file system.
|
/// 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> {
|
pub struct AssetPath<'a> {
|
||||||
path: Cow<'a, Path>,
|
path: Cow<'a, Path>,
|
||||||
label: Option<Cow<'a, str>>,
|
label: Option<Cow<'a, str>>,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user