Format...

This commit is contained in:
Natsu Kagami 2024-02-17 20:38:25 +01:00
parent 1125cac2a8
commit 40935f114a
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -168,10 +168,7 @@ impl From<model::OsuUser> 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) {