From bfd6285c3b47a1b2a19a14db46d3aed215c5bcf1 Mon Sep 17 00:00:00 2001 From: Marlon Date: Mon, 17 Oct 2022 14:01:53 +0000 Subject: [PATCH] Add Eq & PartialEq to AssetPath (#6274) Adds `Eq` and `ArtialEq` to `AssetPath` to make `AssetPath` usable inside HashMaps. --- crates/bevy_asset/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_asset/src/path.rs b/crates/bevy_asset/src/path.rs index 1cfbc87dcc33d..8cec8282e2e58 100644 --- a/crates/bevy_asset/src/path.rs +++ b/crates/bevy_asset/src/path.rs @@ -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>,