mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 00:08:54 +00:00
Format...
This commit is contained in:
parent
1125cac2a8
commit
40935f114a
1 changed files with 1 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue