mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 08:22:33 +00:00
Make sound to_name a const fn (#519)
Small change but should make it a bit faster
This commit is contained in:
@@ -50,7 +50,7 @@ pub(crate) fn build() -> TokenStream {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn to_name(&self) -> &'static str {
|
||||
pub const fn to_name(&self) -> &'static str {
|
||||
match self {
|
||||
#type_to_name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user