mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
Another round of manual linting
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
Some checks failed
Build and Test / Format check (push) Has been cancelled
Build and Test / Lint (push) Has been cancelled
Build and Test / Test (push) Has been cancelled
Build and Test / Check dependency hash (push) Has been cancelled
Build and Test / Build (push) Has been cancelled
This commit is contained in:
parent
c5f46dd7fe
commit
a4ac2b9e2c
8 changed files with 38 additions and 38 deletions
|
@ -337,7 +337,7 @@ async fn beatmap<U: HasOsuEnv>(
|
|||
EmbedType::Beatmap(beatmap, bmode, info, bmmods) => {
|
||||
let (beatmap, info, mods) =
|
||||
if mods.is_none() && mode.is_none_or(|v| v == bmode.unwrap_or(beatmap.mode)) {
|
||||
(*beatmap, info, bmmods)
|
||||
(*beatmap, *info, bmmods)
|
||||
} else {
|
||||
let mode = bmode.unwrap_or(beatmap.mode);
|
||||
let mods = match mods {
|
||||
|
@ -678,7 +678,7 @@ async fn parse_map_input(
|
|||
return Ok(EmbedType::Beatmap(
|
||||
Box::new(beatmap),
|
||||
None,
|
||||
info,
|
||||
Box::new(info),
|
||||
Mods::NOMOD.clone(),
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue