1
0
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:
Bradlee Speice 2019-10-03 22:55:02 -04:00
parent 38eea0224f
commit a40a71d4a8
2 changed files with 8 additions and 4 deletions

View File

@ -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() {

View File

@ -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)
);
}
}