Add #[inline(always)]
attribute to process
methods in PlayerSettings
and Track
This commit is contained in:
parent
a82dc31beb
commit
a867ee5fe2
2 changed files with 2 additions and 0 deletions
|
@ -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")]
|
||||
{
|
||||
|
|
|
@ -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")]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue