fix: clippy
This commit is contained in:
@@ -47,7 +47,7 @@ impl EyePointer {
|
||||
pub fn update(&self) {
|
||||
let ray = Input::get_eyes();
|
||||
self.spatial.set_local_transform(
|
||||
Mat4::from_rotation_translation(ray.orientation.into(), ray.position.into()).into(),
|
||||
Mat4::from_rotation_translation(ray.orientation.into(), ray.position.into()),
|
||||
);
|
||||
{
|
||||
// Set pointer input datamap
|
||||
|
||||
@@ -157,7 +157,7 @@ impl MousePointer {
|
||||
.pointer
|
||||
.capture_requests
|
||||
.get_valid_contents()
|
||||
.contains(&capture)
|
||||
.contains(capture)
|
||||
{
|
||||
self.capture.take();
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ impl SkController {
|
||||
.input
|
||||
.capture_requests
|
||||
.get_valid_contents()
|
||||
.contains(&capture)
|
||||
.contains(capture)
|
||||
{
|
||||
self.capture.take();
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ impl SkHand {
|
||||
.input
|
||||
.capture_requests
|
||||
.get_valid_contents()
|
||||
.contains(&capture)
|
||||
.contains(capture)
|
||||
{
|
||||
self.capture.take();
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ impl PlaySpace {
|
||||
pub fn update(&self) {
|
||||
let pose = World::get_bounds_pose();
|
||||
self.spatial.set_local_transform(
|
||||
Mat4::from_rotation_translation(pose.orientation.into(), pose.position.into()).into(),
|
||||
Mat4::from_rotation_translation(pose.orientation.into(), pose.position.into()),
|
||||
);
|
||||
let Field::Box(box_field) = self.field.as_ref() else {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user