silence clippy lint.
This commit is contained in:
parent
e551c5e8f3
commit
b96f1c3014
1 changed files with 1 additions and 5 deletions
|
@ -34,11 +34,7 @@ impl Debug for User {
|
|||
impl Display for User {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
let uname = &self.username;
|
||||
let dname = if let Some(ref n) = self.displayname {
|
||||
n
|
||||
} else {
|
||||
""
|
||||
};
|
||||
let dname = self.displayname.as_deref().unwrap_or_default();
|
||||
let email = &self.email;
|
||||
write!(
|
||||
f,
|
||||
|
|
Loading…
Reference in a new issue