1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-12-21 21:38:09 -05:00

Formatting fix

This commit is contained in:
Bradlee Speice 2019-10-06 18:42:38 -04:00
parent 730252127b
commit 6e1645a7c1

View File

@ -17,7 +17,11 @@ unsafe extern "C" fn termination_hook(_clientd: *mut c_void) {
RUNNING.store(false, Ordering::SeqCst); RUNNING.store(false, Ordering::SeqCst);
} }
unsafe extern "C" fn termination_validator(_state: *mut c_void, _buffer: *mut u8, _length: i32) -> bool { unsafe extern "C" fn termination_validator(
_state: *mut c_void,
_buffer: *mut u8,
_length: i32,
) -> bool {
true true
} }
@ -73,7 +77,7 @@ fn main() {
aeron_driver_context_set_driver_termination_validator( aeron_driver_context_set_driver_termination_validator(
context, context,
Some(termination_validator), Some(termination_validator),
ptr::null_mut() ptr::null_mut(),
) )
}; };
if term_validator < 0 { if term_validator < 0 {