From 070af41d97e46adc002a45a87c634ab265f73f24 Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Mon, 17 Mar 2025 12:34:31 +0800 Subject: [PATCH] chore: Upgrade to rust 1.84.1 (#477) 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 a61b799..9227c5b 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 73cb934..f06204d 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 41da842..bc5ac6e 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 337ec24..700d2ee 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;