From 1d90570b29eb4f1b3ea582aa1062883acffd7de7 Mon Sep 17 00:00:00 2001 From: MyBlackMIDIScore Date: Sun, 6 Oct 2024 17:01:27 +0300 Subject: [PATCH] Fix clippy --- soundfonts/src/sfz/grammar/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soundfonts/src/sfz/grammar/mod.rs b/soundfonts/src/sfz/grammar/mod.rs index fdbbe99..0035f00 100644 --- a/soundfonts/src/sfz/grammar/mod.rs +++ b/soundfonts/src/sfz/grammar/mod.rs @@ -59,13 +59,13 @@ bnf! { impl<'a> OpcodeValue<'a> { pub fn as_string(&self) -> Cow<'a, str> { if self.rest.is_empty() { - return Cow::Borrowed(self.first.value.text.text); + Cow::Borrowed(self.first.value.text.text) } else { let mut result = String::from(self.first.value.text.text); for part in self.rest.iter() { result.push_str(part.value.text.text); } - return Cow::Owned(result); + Cow::Owned(result) } } }