diff --git a/src/cmus/mod.rs b/src/cmus/mod.rs index c0a67b4..d170da6 100644 --- a/src/cmus/mod.rs +++ b/src/cmus/mod.rs @@ -91,6 +91,7 @@ impl TemplateProcessor for Track { /// Process the template with the track metadata. /// The template is a string with placeholders that will be replaced with the track metadata. /// The unknown placeholders will be skipped (don't replaced with anything, because they are maybe placeholders for player settings). + #[inline(always)] fn process(&self, template: &String) -> String { #[cfg(feature = "debug")] { diff --git a/src/cmus/player_settings.rs b/src/cmus/player_settings.rs index 41efce4..07eaa04 100644 --- a/src/cmus/player_settings.rs +++ b/src/cmus/player_settings.rs @@ -41,6 +41,7 @@ impl TemplateProcessor for PlayerSettings { /// Replace all keys in the template with the corresponding values. /// If the key is unknown, it will be replaced with an empty string. /// This function should be used after the track metadata placeholders have been replaced. + #[inline(always)] fn process(&self, template: &String) -> String { #[cfg(feature = "debug")] {