From 55edb0b476fcd411000b65461366e8a886097858 Mon Sep 17 00:00:00 2001 From: Lucas Franca Date: Mon, 19 May 2025 20:56:48 -0300 Subject: [PATCH] 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 --- clippy.toml | 1 - crates/bevy_macro_utils/src/bevy_manifest.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/clippy.toml b/clippy.toml index 2c98e8ed02..372ffbaf0b 100644 --- a/clippy.toml +++ b/clippy.toml @@ -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 `{}`. diff --git a/crates/bevy_macro_utils/src/bevy_manifest.rs b/crates/bevy_macro_utils/src/bevy_manifest.rs index 8d32781069..b6df0e0e0f 100644 --- a/crates/bevy_macro_utils/src/bevy_manifest.rs +++ b/crates/bevy_macro_utils/src/bevy_manifest.rs @@ -95,7 +95,7 @@ impl BevyManifest { return None; }; - let mut path = Self::parse_str::(&format!("::{}", package)); + let mut path = Self::parse_str::(&format!("::{package}")); if let Some(module) = name.strip_prefix("bevy_") { path.segments.push(Self::parse_str(module)); }