Skip to content

Commit

Permalink
Integrated clippy recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
QueenOfSquiggles committed Nov 26, 2023
1 parent e90ea7e commit f721ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl IMarker3D for VirtualCamera3D {
if self.push_on_ready {
if let Some(brain_tree) = tree.get_first_node_in_group(CAMERA_BRAIN_GROUP.into()) {
let option_temp: Result<Gd<CameraBrain3D>, Gd<Node>> = brain_tree.try_cast();
if let Some(mut brain) = option_temp.ok() {
if let Ok(mut brain) = option_temp {
let self_gd: Gd<Self> = self.base.clone().cast();
brain.bind_mut().push_cam(self_gd);
}
Expand Down
2 changes: 1 addition & 1 deletion src/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl IRayCast3D for InteractRaycast3D {
fn physics_process(&mut self, _delta: f64) {
if let Some(collider) = self.base.get_collider() {
let option_typed: Result<Gd<Node3D>, Gd<Object>> = collider.try_cast();
if let Some(mut coll3d) = option_typed.ok() {
if let Ok(mut coll3d) = option_typed {
let mut in_group = self.filter_groups.is_empty();
for g in self.filter_groups.as_slice() {
if coll3d.is_in_group(StringName::from(g)) {
Expand Down

0 comments on commit f721ceb

Please sign in to comment.