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 {
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));