mirror of
https://github.com/bevyengine/bevy
synced 2024-11-29 08:00:20 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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>>,
|
||||
|
|
Loading…
Reference in a new issue