clippy
Some checks failed
Book / test (pull_request) Has been cancelled
Rust / build (pull_request) Has been cancelled

This commit is contained in:
Jaroslaw Konik 2025-05-27 19:00:55 +02:00
parent e22236f201
commit 5a4a214f67

View file

@ -438,16 +438,14 @@ impl BuildScriptingRuntime for App {
/// care of processing and running the scripts. /// care of processing and running the scripts.
fn add_scripting<R: Runtime>(&mut self, f: impl Fn(ScriptingRuntimeBuilder<R>)) -> &mut Self { fn add_scripting<R: Runtime>(&mut self, f: impl Fn(ScriptingRuntimeBuilder<R>)) -> &mut Self {
#[cfg(debug_assertions)] #[cfg(debug_assertions)]
if R::needs_rdynamic_linking() { if R::needs_rdynamic_linking() && !is_rdynamic_linking() {
if !is_rdynamic_linking() { panic!(
panic!( "Missing `-rdynamic`: symbol resolution failed.\n\
"Missing `-rdynamic`: symbol resolution failed.\n\ It is needed by {:?}.\n\
It is needed by {:?}.\n\ Please add `println!(\"cargo:rustc-link-arg=-rdynamic\");` to your build.rs\n\
Please add `println!(\"cargo:rustc-link-arg=-rdynamic\");` to your build.rs\n\ or set `RUSTFLAGS=\"-C link-arg=-rdynamic\"`.",
or set `RUSTFLAGS=\"-C link-arg=-rdynamic\"`.", std::any::type_name::<R>()
std::any::type_name::<R>() );
);
}
} }
self.world_mut() self.world_mut()