From 6b2a5b43f3c9d13806d5180304ca28cf1369006e Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 4 Apr 2022 01:29:52 -0400 Subject: [PATCH] Yeet stringly-typed labels --- crates/bevy_utils/src/label.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/crates/bevy_utils/src/label.rs b/crates/bevy_utils/src/label.rs index 7728ef8b947df..f54c8f5128333 100644 --- a/crates/bevy_utils/src/label.rs +++ b/crates/bevy_utils/src/label.rs @@ -85,17 +85,5 @@ macro_rules! define_label { self.dyn_clone() } } - - impl $label_trait_name for ::std::borrow::Cow<'static, str> { - fn dyn_clone(&self) -> Box { - Box::new(self.clone()) - } - } - - impl $label_trait_name for &'static str { - fn dyn_clone(&self) -> Box { - Box::new(<&str>::clone(self)) - } - } }; }