nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: Thomasdezeeuw/a10
Pull request #135 (2024-06-16 11:29:00)

Export Cancel from the root of the crate
Makes it easier to discover and use.


Patch:
diff --git a/src/lib.rs b/src/lib.rs
index 4f8346a..9aa236e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -163,6 +163,8 @@ pub mod poll;
 pub mod process;
 
 use bitmap::AtomicBitMap;
+#[doc(no_inline)]
+pub use cancel::Cancel;
 use config::munmap;
 pub use config::Config;
 #[doc(no_inline)]


Test patch:
diff --git a/tests/util/mod.rs b/tests/util/mod.rs
index 1fe5481..f6fb8b9 100644
--- a/tests/util/mod.rs
+++ b/tests/util/mod.rs
@@ -18,10 +18,9 @@ use std::task::{self, Poll};
 use std::thread::{self, Thread};
 use std::{fmt, mem, panic, process, ptr, str};
 
-use a10::cancel::Cancel;
 use a10::fd::Descriptor;
 use a10::net::socket;
-use a10::{AsyncFd, Ring, SubmissionQueue};
+use a10::{AsyncFd, Cancel, Ring, SubmissionQueue};
 
 /// Initialise logging.
 ///