Skip to content

Commit

Permalink
fix: 🚨 fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade committed Oct 23, 2023
1 parent 96e8fac commit 1f90863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

mod directory;
#[allow(clippy::ignored_unit_patterns)]
mod header;
mod pmtiles;
mod tile_manager;
Expand Down
5 changes: 1 addition & 4 deletions src/tile_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ impl<R> TileManager<R> {

self.data_by_hash.insert(hash, vec);

self.ids_by_hash
.entry(hash)
.or_insert_with(HashSet::new)
.insert(tile_id);
self.ids_by_hash.entry(hash).or_default().insert(tile_id);
}

pub(crate) fn add_offset_tile(&mut self, tile_id: u64, offset: u64, length: u32) {
Expand Down

0 comments on commit 1f90863

Please sign in to comment.