From 409c7a0a173b8d7f3c773816fae618f4f39411aa Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Sat, 1 Jan 2022 18:24:59 -0500 Subject: [PATCH] Format via rustfmt --- src/lib.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9ab24b7..52cb43b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,19 +1,22 @@ extern crate libc; #[no_mangle] -extern "C" fn posix_memalign(memptr: *mut *mut libc::c_void, align: libc::size_t, size: libc::size_t) -> libc::c_int { +extern "C" fn posix_memalign( + memptr: *mut *mut libc::c_void, + align: libc::size_t, + size: libc::size_t, +) -> libc::c_int { unsafe { *memptr = libc::memalign(align, size); } - + 0 } - #[no_mangle] unsafe extern "C" fn realpath( - path: *const libc::c_char, - resolved_path: *mut libc::c_char + path: *const libc::c_char, + resolved_path: *mut libc::c_char, ) -> *mut libc::c_char { libc::memcpy(resolved_path as _, path as _, libc::strlen(path));