From a29f199e80af42f8912e6ba76660043b16560384 Mon Sep 17 00:00:00 2001 From: Pfauenauge90 <44173739+Pfauenauge90@users.noreply.github.com> Date: Thu, 9 Apr 2020 01:25:11 +0200 Subject: [PATCH] fmt --- voxygen/src/hud/map.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voxygen/src/hud/map.rs b/voxygen/src/hud/map.rs index 82c07d7c54..9de88cf360 100644 --- a/voxygen/src/hud/map.rs +++ b/voxygen/src/hud/map.rs @@ -193,7 +193,8 @@ impl<'a> Widget for Map<'a> { .get(self.client.entity()) .map_or(Vec3::zero(), |pos| pos.0); // Cursor pos relative to playerpos and widget size - // Cursor stops moving on an axis as soon as it's position exceeds the maximum size of the widget + // Cursor stops moving on an axis as soon as it's position exceeds the maximum + // size of the widget let rel = Vec2::from(player_pos).map2(worldsize, |e: f32, sz: f64| { (e as f64 / sz).clamped(0.0, 1.0) });