From 809f0ede9a97e9aebddccd14e70d9ace12df50f5 Mon Sep 17 00:00:00 2001 From: Luke Seelenbinder Date: Tue, 17 Sep 2024 19:39:48 +0300 Subject: [PATCH] Fix mismatch of MSRV and prefix lint. --- Cargo.toml | 2 +- src/directory.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5309247..74e4998 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT OR Apache-2.0" description = "Implementation of the PMTiles v3 spec with multiple sync and async backends." repository = "https://github.com/stadiamaps/pmtiles-rs" keywords = ["pmtiles", "gis", "geo"] -rust-version = "1.78.0" +rust-version = "1.81.0" categories = ["science::geo"] [features] diff --git a/src/directory.rs b/src/directory.rs index c416d5e..a839a91 100644 --- a/src/directory.rs +++ b/src/directory.rs @@ -41,7 +41,7 @@ impl Directory { /// Get an estimated byte size of the directory object. Use this for cache eviction. #[must_use] pub fn get_approx_byte_size(&self) -> usize { - self.entries.capacity() * std::mem::size_of::() + self.entries.capacity() * size_of::() } }