From be150d6253a567957b1bbab8d7514398e8370517 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 8 Dec 2024 14:47:03 +0900 Subject: [PATCH] Bump MSRV to 1.73 (#364) --- Cargo.toml | 4 ++-- src/rt/object.rs | 2 +- src/thread.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e2175364..02762314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ repository = "https://github.com/tokio-rs/loom" readme = "README.md" keywords = ["atomic", "lock-free"] categories = ["concurrency", "data-structures"] -rust-version = "1.65" +rust-version = "1.73" [features] default = [] @@ -31,7 +31,7 @@ scoped-tls = "1.0.0" generator = "0.8.1" # Requires for "checkpoint" feature -serde = { version = "1.0.92", features = ["derive"], optional = true } +serde = { version = "1.0.113", features = ["derive"], optional = true } serde_json = { version = "1.0.33", optional = true } # Requires for "futures" feature diff --git a/src/rt/object.rs b/src/rt/object.rs index 87959eb1..99ca22f4 100644 --- a/src/rt/object.rs +++ b/src/rt/object.rs @@ -199,7 +199,7 @@ impl Store { }) } - pub(super) fn iter_mut<'a, O>(&'a mut self) -> impl DoubleEndedIterator + pub(super) fn iter_mut<'a, O>(&'a mut self) -> impl DoubleEndedIterator where O: Object + 'a, { diff --git a/src/thread.rs b/src/thread.rs index eca72db5..6269bf73 100644 --- a/src/thread.rs +++ b/src/thread.rs @@ -280,7 +280,7 @@ impl LocalKey { Ok(f(value)) } - unsafe fn get(&'static self) -> Option> { + unsafe fn get(&'static self) -> Option> { unsafe fn transmute_lt<'a, 'b, T>(t: &'a T) -> &'b T { std::mem::transmute::<&'a T, &'b T>(t) }