Skip to content

Commit

Permalink
move conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdonszelmann committed Jun 8, 2023
1 parent 07bcb13 commit 3f46912
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ pub use with_alloc::alloc_ringbuffer::AllocRingBuffer;
#[cfg(feature = "alloc")]
pub use with_alloc::vecdeque::GrowableAllocRingBuffer;

#[cfg(test)]
mod conversions;

mod with_const_generics;
pub use with_const_generics::ConstGenericRingBuffer;

Expand Down
3 changes: 3 additions & 0 deletions tests/compiletests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ extern crate compiletest_rs as compiletest;

use std::path::PathBuf;

#[cfg(test)]
mod conversions;

fn run_mode(mode: &'static str) {
let mut config = compiletest::Config::default();

Expand Down
6 changes: 3 additions & 3 deletions src/conversions.rs → tests/conversions.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate std;
extern crate alloc;

use crate::{AllocRingBuffer, ConstGenericRingBuffer, GrowableAllocRingBuffer};
use crate::{RingBufferExt, RingBufferWrite};
use ringbuffer::{AllocRingBuffer, ConstGenericRingBuffer, GrowableAllocRingBuffer};
use ringbuffer::{RingBufferExt, RingBufferWrite};
use alloc::collections::{LinkedList, VecDeque};
use alloc::string::ToString;
use core::ops::Deref;
Expand Down

0 comments on commit 3f46912

Please # to comment.