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

This commit is contained in:
Natsu Kagami 2025-05-13 00:58:28 +02:00
parent c5f46dd7fe
commit a4ac2b9e2c
Signed by: nki
GPG key ID: 55A032EB38B49ADB
8 changed files with 38 additions and 38 deletions

View file

@ -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(),
));
}