Skip to content

Commit f2af7e3

Browse files
committed
Revert "remove impl Label for &'static str"
This reverts commit 8320c36.
1 parent cf7c197 commit f2af7e3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/bevy_utils/src/label.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,11 @@ macro_rules! define_label {
109109
self.1
110110
}
111111
}
112+
113+
impl $label_name for &'static str {
114+
fn as_str(&self) -> Self {
115+
self
116+
}
117+
}
112118
};
113119
}

0 commit comments

Comments
 (0)