You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
fix: compiling with modern Rust
This commit fixes compiling errors with modern Rust.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use std::ptr::addr_of;
|
||||
|
||||
mod kernelsu;
|
||||
mod magisk;
|
||||
|
||||
@@ -36,7 +38,7 @@ pub fn setup() {
|
||||
}
|
||||
|
||||
pub fn get_impl() -> &'static RootImpl {
|
||||
unsafe { &ROOT_IMPL }
|
||||
unsafe { &*addr_of!(ROOT_IMPL) }
|
||||
}
|
||||
|
||||
pub fn uid_granted_root(uid: i32) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user