clippy
This commit is contained in:
parent
e22236f201
commit
5a4a214f67
1 changed files with 8 additions and 10 deletions
|
|
@ -438,8 +438,7 @@ 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\
|
||||||
|
|
@ -448,7 +447,6 @@ impl BuildScriptingRuntime for App {
|
||||||
std::any::type_name::<R>()
|
std::any::type_name::<R>()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
self.world_mut()
|
self.world_mut()
|
||||||
.resource_mut::<MainScheduleOrder>()
|
.resource_mut::<MainScheduleOrder>()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue