Make sound to_name a const fn (#519)

Small change but should make it a bit faster
This commit is contained in:
drakeerv
2025-01-31 04:12:07 -05:00
committed by GitHub
parent fefcb78e56
commit e1e0576f29

View File

@@ -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
}