mirror of
https://github.com/bspeice/aeron-rs
synced 2024-12-22 05:48:10 -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)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::*;
|
|
||||||
use std::convert::TryInto;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn version_check() {
|
fn version_check() {
|
||||||
|
@ -96,7 +96,10 @@ mod tests {
|
|||||||
let mut buf = [16, 0, 0, 0, 0, 0, 0];
|
let mut buf = [16, 0, 0, 0, 0, 0, 0];
|
||||||
|
|
||||||
let atomic_buf = AtomicBuffer::wrap(&mut buf);
|
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]
|
#[test]
|
||||||
@ -104,6 +107,9 @@ mod tests {
|
|||||||
let mut buf = [16, 0, 0, 0, 0, 0, 0, 0];
|
let mut buf = [16, 0, 0, 0, 0, 0, 0, 0];
|
||||||
|
|
||||||
let atomic_buf = AtomicBuffer::wrap(&mut buf);
|
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