Skip to content

Commit aa5eb65

Browse files
committed
fmt
1 parent 7573d47 commit aa5eb65

File tree

1 file changed

+12
-2
lines changed
  • crates/bevy_mod_scripting_functions/src

1 file changed

+12
-2
lines changed

crates/bevy_mod_scripting_functions/src/core.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,20 @@ impl World {
4646
fn get_type_by_name(
4747
ctxt: FunctionCallContext,
4848
type_name: String,
49-
) -> Result<Option<Union<Val<ScriptTypeRegistration>, Union<Val<ScriptComponentRegistration>, Val<ScriptResourceRegistration>>>>, InteropError> {
49+
) -> Result<
50+
Option<
51+
Union<
52+
Val<ScriptTypeRegistration>,
53+
Union<Val<ScriptComponentRegistration>, Val<ScriptResourceRegistration>>,
54+
>,
55+
>,
56+
InteropError,
57+
> {
5058
profiling::function_scope!("get_type_by_name");
5159
let world = ctxt.world()?;
52-
world.get_type_registration_by_name(type_name).map(|v| v.map(|v| v.map_both(Val::from, |u| u.map_both(Val::from, Val::from))))
60+
world
61+
.get_type_registration_by_name(type_name)
62+
.map(|v| v.map(|v| v.map_both(Val::from, |u| u.map_both(Val::from, Val::from))))
5363
}
5464

5565
/// Retrieves the schedule with the given name, Also ensures the schedule is initialized before returning it.

0 commit comments

Comments
 (0)