summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/backend/libc/weak.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/backend/libc/weak.rs')
-rw-r--r--vendor/rustix/src/backend/libc/weak.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/rustix/src/backend/libc/weak.rs b/vendor/rustix/src/backend/libc/weak.rs
index d578038cd..b7f185da3 100644
--- a/vendor/rustix/src/backend/libc/weak.rs
+++ b/vendor/rustix/src/backend/libc/weak.rs
@@ -111,7 +111,7 @@ unsafe fn fetch(name: &str) -> *mut c_void {
Ok(c_str) => c_str,
Err(..) => return null_mut(),
};
- libc::dlsym(libc::RTLD_DEFAULT, name.as_ptr().cast())
+ libc::dlsym(libc::RTLD_DEFAULT, name.as_ptr())
}
#[cfg(not(any(target_os = "android", target_os = "linux")))]