Skip to content

Commit eb467ea

Browse files
committed
Cargo fmt
1 parent 9bae80f commit eb467ea

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/bevy_core/src/name.rs

-1
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,3 @@ impl Deref for Name {
157157
self.name.as_ref()
158158
}
159159
}
160-

crates/bevy_gltf/src/loader.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ async fn load_gltf<'a, 'b>(
137137
}
138138
}
139139

140-
141140
let mut meshes = vec![];
142141
let mut named_meshes = HashMap::default();
143142
for mesh in gltf.meshes() {
@@ -544,7 +543,10 @@ async fn load_gltf<'a, 'b>(
544543
}
545544

546545
fn is_animation_root(gltf: &gltf::Gltf, node: &gltf::Node) -> bool {
547-
gltf.animations().flat_map(|a| a.channels()).any(|c| node.children().any(|n| c.target().node().index() == n.index()))
546+
gltf.animations().flat_map(|a| a.channels()).any(|c| {
547+
node.children()
548+
.any(|n| c.target().node().index() == n.index())
549+
})
548550
}
549551

550552
fn node_name(node: &Node) -> Name {

0 commit comments

Comments
 (0)