Skip to content

Commit

Permalink
Move AsyncChunkError from rtrb to rtrb::chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
RamType0 committed Nov 7, 2021
1 parent 44169dc commit d8016b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ use core::sync::atomic::Ordering;

use crate::{Consumer, CopyToUninit, DummyReactor, Reactor, Producer};

#[cfg(feature = "async")]
pub use crate::async_rtrb::AsyncChunkError;

// This is used in the documentation.
#[allow(unused_imports)]
use crate::RingBuffer;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ mod reactor;
#[cfg(feature = "async")]
mod async_rtrb;
#[cfg(feature = "async")]
pub use async_rtrb::{AsyncChunkError,AsyncPushError,AsyncPopError,AsyncPeekError};
pub use async_rtrb::{AsyncPushError,AsyncPopError,AsyncPeekError};

use reactor::{DummyReactor, Reactor};
// This is used in the documentation.
Expand Down
2 changes: 1 addition & 1 deletion tests/async_operations.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![cfg(feature = "async")]
use rtrb::RingBuffer;
use rtrb::*;
use rtrb::chunks::AsyncChunkError;

#[tokio::test]
async fn exceed_capacity(){
Expand Down

0 comments on commit d8016b2

Please sign in to comment.