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 {
|
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,
|
||||||
|
|
Loading…
Reference in a new issue