Fix warnings and errors reported on Rust beta (#19294)

# Objective

Fixes errors and warnings on this week's Rust beta pipeline 
*
https://github.com/bevyengine/bevy/issues/18748#issuecomment-2890820218
This commit is contained in:
Lucas Franca 2025-05-19 20:56:48 -03:00 committed by GitHub
parent 17914943a3
commit 55edb0b476
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,6 @@ disallowed-methods = [
{ path = "f32::asinh", reason = "use bevy_math::ops::asinh instead for libm determinism" },
{ path = "f32::acosh", reason = "use bevy_math::ops::acosh instead for libm determinism" },
{ path = "f32::atanh", reason = "use bevy_math::ops::atanh instead for libm determinism" },
{ path = "criterion::black_box", reason = "use core::hint::black_box instead" },
]
# Require `bevy_ecs::children!` to use `[]` braces, instead of `()` or `{}`.

View File

@ -95,7 +95,7 @@ impl BevyManifest {
return None;
};
let mut path = Self::parse_str::<syn::Path>(&format!("::{}", package));
let mut path = Self::parse_str::<syn::Path>(&format!("::{package}"));
if let Some(module) = name.strip_prefix("bevy_") {
path.segments.push(Self::parse_str(module));
}