diff --git a/aeron_driver-sys/src/lib.rs b/aeron_driver-sys/src/lib.rs index 386ea65..9f6426e 100644 --- a/aeron_driver-sys/src/lib.rs +++ b/aeron_driver-sys/src/lib.rs @@ -6,8 +6,6 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs")); #[cfg(test)] mod tests { - use crate::*; - use std::convert::TryInto; #[test] fn version_check() { diff --git a/src/client/concurrent/atomic_buffer.rs b/src/client/concurrent/atomic_buffer.rs index 5847b26..69c39a8 100644 --- a/src/client/concurrent/atomic_buffer.rs +++ b/src/client/concurrent/atomic_buffer.rs @@ -96,7 +96,10 @@ mod tests { let mut buf = [16, 0, 0, 0, 0, 0, 0]; let atomic_buf = AtomicBuffer::wrap(&mut buf); - assert_eq!(atomic_buf.get_and_add_i64(0, 0), Err(AeronError::OutOfBounds)); + assert_eq!( + atomic_buf.get_and_add_i64(0, 0), + Err(AeronError::OutOfBounds) + ); } #[test] @@ -104,6 +107,9 @@ mod tests { let mut buf = [16, 0, 0, 0, 0, 0, 0, 0]; let atomic_buf = AtomicBuffer::wrap(&mut buf); - assert_eq!(atomic_buf.get_and_add_i64(1, 0), Err(AeronError::OutOfBounds)); + assert_eq!( + atomic_buf.get_and_add_i64(1, 0), + Err(AeronError::OutOfBounds) + ); } }