Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrasingh committed Aug 23, 2024
1 parent 351b1dd commit ea8371c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions geoprox-core/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,16 +218,14 @@ impl PartialEq for SpatialIndex {
.fold(
|| true,
|result, (key, ghash, ttl)| {
let id = other.hasher.hash_one(&key);
let id = other.hasher.hash_one(key);
result
&& match other
&& other
.objects
.find(id, |(other_key, other_ghash, other_ttl)| {
other_key == key && other_ghash == ghash && other_ttl == ttl
}) {
Some(_) => true,
None => false,
}
})
.is_some()
},
)
.reduce(|| true, |result, found| result && found);
Expand Down
2 changes: 1 addition & 1 deletion geoprox-server/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl AppState {
pub fn store_snapshot(&self) {
fs::write(
self.server_config.snapshot.bin_path(),
&bincode::serialize(&self.geoshard).unwrap(),
bincode::serialize(&self.geoshard).unwrap(),
)
.expect("could not store snapshot");
}
Expand Down

0 comments on commit ea8371c

Please sign in to comment.