Appease Clippy.

This commit is contained in:
Nolan Darilek 2022-05-23 11:23:04 -05:00
parent 6d8f235657
commit 5db110ccc8

View File

@ -76,7 +76,7 @@ impl Viewshed {
for e in entities { for e in entities {
new_visible_entities.insert(*e); new_visible_entities.insert(*e);
} }
if entities.contains(&viewer_entity) { if entities.contains(viewer_entity) {
return 0; return 0;
} else { } else {
return *opacity; return *opacity;
@ -107,7 +107,7 @@ impl Viewshed {
for e in &entities { for e in &entities {
new_visible_entities.insert(*e); new_visible_entities.insert(*e);
} }
if entities.contains(&viewer_entity) { if entities.contains(viewer_entity) {
0 0
} else { } else {
cache.insert(coord, (opacity, entities)); cache.insert(coord, (opacity, entities));