Skip to content

Commit

Permalink
Export Cancel from the root of the crate
Browse files Browse the repository at this point in the history
Makes it easier to discover and use.
  • Loading branch information
Thomasdezeeuw committed Jun 16, 2024
1 parent 19f293e commit 4b91d3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
3 changes: 1 addition & 2 deletions tests/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit 4b91d3f

Please sign in to comment.