mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-21 21:38:09 -05:00
Fix formatting and warnings
This commit is contained in:
parent
38eea0224f
commit
a40a71d4a8
@ -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() {
|
||||
|
@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user