You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-crossbeam-epoch/0001-Remove-redundant-clone...

26 lines
792 B

From 1cead3c1acf440d13bfa09a636a70531337f170d Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Mon, 9 Oct 2023 01:19:01 +0200
Subject: [PATCH] Remove redundant clone() call to fix builds with Rust 1.73+
---
src/guard.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/guard.rs b/src/guard.rs
index ba7fe1b..32c82e6 100644
--- a/src/guard.rs
+++ b/src/guard.rs
@@ -448,7 +448,7 @@ impl fmt::Debug for Guard {
/// a.load(Relaxed, epoch::unprotected());
///
/// // It's possible to create more dummy guards by calling `clone()`.
-/// let dummy = &epoch::unprotected().clone();
+/// let dummy = &epoch::unprotected();
///
/// dummy.defer(move || {
/// println!("This gets executed immediately.");
--
2.41.0