From 6e1645a7c169700b530659580edbfe5ba1069f9f Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sun, 6 Oct 2019 18:42:38 -0400 Subject: [PATCH] Formatting fix --- examples/aeronmd.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/aeronmd.rs b/examples/aeronmd.rs index 6909ff3..f3a258b 100644 --- a/examples/aeronmd.rs +++ b/examples/aeronmd.rs @@ -17,7 +17,11 @@ unsafe extern "C" fn termination_hook(_clientd: *mut c_void) { 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 } @@ -73,7 +77,7 @@ fn main() { aeron_driver_context_set_driver_termination_validator( context, Some(termination_validator), - ptr::null_mut() + ptr::null_mut(), ) }; if term_validator < 0 {