chore: clippy
This commit is contained in:
@@ -494,11 +494,9 @@ impl Pointer {
|
|||||||
.transform
|
.transform
|
||||||
.matrix3
|
.matrix3
|
||||||
.mul_scalar(1.0 - 0.025 * self.now.scroll);
|
.mul_scalar(1.0 - 0.025 * self.now.scroll);
|
||||||
} else {
|
} else if config.allow_sliding && self.now.scroll.is_finite() {
|
||||||
if config.allow_sliding && self.now.scroll.is_finite() {
|
|
||||||
grab_data.offset.z -= self.now.scroll * 0.05;
|
grab_data.offset.z -= self.now.scroll * 0.05;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
overlay.state.transform.translation = self.pose.transform_point3a(grab_data.offset);
|
overlay.state.transform.translation = self.pose.transform_point3a(grab_data.offset);
|
||||||
overlay.state.realign(hmd);
|
overlay.state.realign(hmd);
|
||||||
overlay.state.dirty = true;
|
overlay.state.dirty = true;
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ fn new_toast(
|
|||||||
.session
|
.session
|
||||||
.config
|
.config
|
||||||
.toast_topics
|
.toast_topics
|
||||||
.get(&toast.topic)
|
.get(toast.topic)
|
||||||
.copied()
|
.copied()
|
||||||
.unwrap_or(DisplayMethod::Hide);
|
.unwrap_or(DisplayMethod::Hide);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user