diff --git a/youmubot-osu/src/discord/db.rs b/youmubot-osu/src/discord/db.rs index c205ec3..ddb2c21 100644 --- a/youmubot-osu/src/discord/db.rs +++ b/youmubot-osu/src/discord/db.rs @@ -168,10 +168,7 @@ impl From for OsuUser { fn from(u: model::OsuUser) -> Self { Self { user_id: UserId(u.user_id as u64), - username: u - .username - .map(Cow::Owned) - .unwrap_or("unknown".into()), + username: u.username.map(Cow::Owned).unwrap_or("unknown".into()), id: u.id as u64, last_update: u.last_update, pp: [0, 1, 2, 3].map(|v| match Mode::from(v) {