From 58d6c86e6f356f7ada360e4d0e52614b1eba36c0 Mon Sep 17 00:00:00 2001 From: Will Date: Fri, 23 Feb 2024 14:26:54 +0900 Subject: [PATCH] fix musl char type mismatch --- src/time.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/time.rs b/src/time.rs index 4d01420..b78338d 100644 --- a/src/time.rs +++ b/src/time.rs @@ -80,7 +80,7 @@ fn format(fmt: &str, time: time_t) -> String { }; let mut str = [0i8; 32]; - let ptr = str.as_mut_ptr(); + let ptr = str.as_mut_ptr() as *mut _; let len = str.len() - 1; let fmt = fmt.as_ptr() as *const _;