diff --git a/amethyst_renderer/src/pass/util.rs b/amethyst_renderer/src/pass/util.rs index fb620fddc4..2bc2a15b2d 100644 --- a/amethyst_renderer/src/pass/util.rs +++ b/amethyst_renderer/src/pass/util.rs @@ -360,7 +360,8 @@ pub fn get_camera<'a>( camera: &'a ReadStorage<'a, Camera>, global: &'a ReadStorage<'a, GlobalTransform>, ) -> Option<(&'a Camera, &'a GlobalTransform)> { - active.entity + active + .entity .and_then(|entity| { let cam = camera.get(entity); let transform = global.get(entity); diff --git a/amethyst_renderer/src/sprite_visibility.rs b/amethyst_renderer/src/sprite_visibility.rs index 08f7139012..1a1911d64c 100644 --- a/amethyst_renderer/src/sprite_visibility.rs +++ b/amethyst_renderer/src/sprite_visibility.rs @@ -73,7 +73,8 @@ impl<'a> System<'a> for SpriteVisibilitySortingSystem { // The camera position is used to determine culling, but the sprites are ordered based on // the Z coordinate - let camera: Option<&GlobalTransform> = active.entity + let camera: Option<&GlobalTransform> = active + .entity .and_then(|entity| global.get(entity)) .or_else(|| (&camera, &global).join().map(|cg| cg.1).next()); let camera_backward = camera diff --git a/amethyst_renderer/src/visibility.rs b/amethyst_renderer/src/visibility.rs index 155f3c0f9d..677ed35b55 100644 --- a/amethyst_renderer/src/visibility.rs +++ b/amethyst_renderer/src/visibility.rs @@ -71,7 +71,8 @@ impl<'a> System<'a> for VisibilitySortingSystem { ) { let origin = Point3::origin(); - let camera: Option<&GlobalTransform> = active.entity + let camera: Option<&GlobalTransform> = active + .entity .and_then(|entity| global.get(entity)) .or_else(|| (&camera, &global).join().map(|cg| cg.1).next()); let camera_backward = camera