From 5db110ccc8a75f9d3a53dd49628b69da555ae66d Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 23 May 2022 11:23:04 -0500 Subject: [PATCH] Appease Clippy. --- src/visibility.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visibility.rs b/src/visibility.rs index 24fdca9..7ce3cd8 100644 --- a/src/visibility.rs +++ b/src/visibility.rs @@ -76,7 +76,7 @@ impl Viewshed { for e in entities { new_visible_entities.insert(*e); } - if entities.contains(&viewer_entity) { + if entities.contains(viewer_entity) { return 0; } else { return *opacity; @@ -107,7 +107,7 @@ impl Viewshed { for e in &entities { new_visible_entities.insert(*e); } - if entities.contains(&viewer_entity) { + if entities.contains(viewer_entity) { 0 } else { cache.insert(coord, (opacity, entities));