diff options
| author | troido <troido@protonmail.com> | 2020-04-06 21:06:17 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-06 21:06:17 +0200 |
| commit | 36034d79acde5039601a0fdf2f9c5e19b5f91003 (patch) | |
| tree | 16ac4e2da49f799fe373908842ff1b953329cd14 /src/components | |
| parent | 289a342917e9291895b0332dd4ab412b15a7fabf (diff) | |
minor refactoring with cargo clippy
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ear.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ear.rs b/src/components/ear.rs index d032122..4bfc87b 100644 --- a/src/components/ear.rs +++ b/src/components/ear.rs @@ -13,7 +13,7 @@ pub struct Sound { impl Sound { pub fn as_message(self) -> (Option<String>, String) { - return (None, format!("{}: {}", self.source.unwrap_or("".to_string()), self.text)); + (None, format!("{}: {}", self.source.unwrap_or("".to_string()), self.text)) } } |
