mirror of
https://git.intege.rs/xlib/x.git
synced 2025-12-06 04:45:02 +00:00
fix time
This commit is contained in:
@@ -15,6 +15,7 @@ pub unsafe fn slicify_mut<T>(value: &mut T) -> &mut [u8] {
|
||||
}
|
||||
|
||||
/// converts a non mutable reference into a mutable one
|
||||
#[allow(invalid_reference_casting)]
|
||||
pub unsafe fn mutify<T>(nr: &T) -> &mut T {
|
||||
&mut *(nr as *const T as *mut T)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user