From 40935f114a35a2ea650ea52827a24ea8eb730caa Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sat, 17 Feb 2024 20:38:25 +0100 Subject: [PATCH] Format... --- youmubot-osu/src/discord/db.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) {