From 714549ae8143b2b170fda6b47d595a43c00afb31 Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Sun, 16 Mar 2025 17:51:53 +0800 Subject: [PATCH] chore: Upgrade to rust 1.84 Signed-off-by: Ping Yu --- Cargo.toml | 2 +- rust-toolchain.toml | 2 +- src/kv/mod.rs | 2 +- src/kv/value.rs | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a61b7992..9227c5b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -52,7 +52,7 @@ clap = "2" env_logger = "0.10" fail = { version = "0.4", features = ["failpoints"] } proptest = "1" -proptest-derive = "0.3" +proptest-derive = "0.5.1" reqwest = { version = "0.11", features = ["json", "native-tls-vendored"] } rstest = "0.18.2" serde_json = "1" diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 73cb934d..f06204d1 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "stable" +channel = "1.84.1" components = ["rustfmt", "clippy"] diff --git a/src/kv/mod.rs b/src/kv/mod.rs index 41da842e..bc5ac6e5 100644 --- a/src/kv/mod.rs +++ b/src/kv/mod.rs @@ -16,7 +16,7 @@ pub use value::Value; struct HexRepr<'a>(pub &'a [u8]); -impl<'a> fmt::Display for HexRepr<'a> { +impl fmt::Display for HexRepr<'_> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { for byte in self.0 { write!(f, "{byte:02X}")?; diff --git a/src/kv/value.rs b/src/kv/value.rs index 337ec24a..700d2ee7 100644 --- a/src/kv/value.rs +++ b/src/kv/value.rs @@ -11,5 +11,4 @@ const _PROPTEST_VALUE_MAX: usize = 1024 * 16; // 16 KB /// Since `Value` is just an alias for `Vec`, conversions to and from it are easy. /// /// Many functions which accept a `Value` accept an `Into`. - pub type Value = Vec;