Remove useless parentheses

This commit is contained in:
Maybe Waffle 2022-08-15 20:10:16 +04:00
parent e26c839d1a
commit d30d4f36cd

View file

@ -43,7 +43,7 @@ impl User {
#[must_use]
pub fn full_name(&self) -> String {
match &self.last_name {
Some(last_name) => (format!("{0} {1}", self.first_name, last_name)),
Some(last_name) => format!("{0} {1}", self.first_name, last_name),
None => self.first_name.clone(),
}
}