silence clippy lint.

This commit is contained in:
Joe Ardent 2024-04-14 12:05:39 -07:00
parent e551c5e8f3
commit b96f1c3014

View file

@ -34,11 +34,7 @@ impl Debug for User {
impl Display for User { impl Display for User {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let uname = &self.username; let uname = &self.username;
let dname = if let Some(ref n) = self.displayname { let dname = self.displayname.as_deref().unwrap_or_default();
n
} else {
""
};
let email = &self.email; let email = &self.email;
write!( write!(
f, f,