Skip to content

Commit

Permalink
fix: increase MSRV to 1.66
Browse files Browse the repository at this point in the history
`unicode-width` v0.1.14 uses the `mixed_integer_ops` feature which was
stabilized in Rust version 1.66, hence also increase the MSRV of this
repo.

Also fix all Clippy warnings.
  • Loading branch information
vmx committed Sep 26, 2024
1 parent f7baf4e commit 2be6fa6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ documentation = "https://docs.rs/merkletree"
keywords = ["merkle", "merkle-tree"]
categories = ["data-structures", "cryptography"]
edition = "2018"
rust-version = "1.63"
rust-version = "1.66"

[package.metadata.release]
pre-release-commit-message = "chore(release): release {{version}}"
Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
blacklisted-names = [
disallowed-names = [
"unreadable_literal"
]
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.63.0
1.66.1
4 changes: 2 additions & 2 deletions src/store/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl<E: Element> Store<E> for DiskStore<E> {

fn new_from_disk(size: usize, _branches: usize, config: &StoreConfig) -> Result<Self> {
let data_path = StoreConfig::data_path(&config.path, &config.id);
Self::new_from_disk_with_path(size, &data_path)
Self::new_from_disk_with_path(size, data_path)
}

fn write_at(&mut self, el: E, index: usize) -> Result<()> {
Expand Down Expand Up @@ -494,7 +494,7 @@ impl<E: Element> DiskStore<E> {
) -> Result<bool> {
let data_path = StoreConfig::data_path(&config.path, &config.id);

let file = File::open(&data_path)?;
let file = File::open(data_path)?;
let metadata = file.metadata()?;
let store_size = metadata.len() as usize;

Expand Down

0 comments on commit 2be6fa6

Please sign in to comment.