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 {
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,