File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub type NSTDUnixOptionalSharedLib = NSTDOptional<NSTDUnixSharedLib>;
38
38
pub unsafe extern "C" fn nstd_os_unix_shared_lib_load (
39
39
path : * const NSTDChar ,
40
40
) -> NSTDUnixOptionalSharedLib {
41
- let handle = dlopen ( path. cast ( ) , RTLD_LAZY | RTLD_LOCAL ) ;
41
+ let handle = dlopen ( path, RTLD_LAZY | RTLD_LOCAL ) ;
42
42
if handle. is_null ( ) {
43
43
return NSTDOptional :: None ;
44
44
}
@@ -66,7 +66,7 @@ pub unsafe extern "C" fn nstd_os_unix_shared_lib_get(
66
66
lib : & NSTDUnixSharedLib ,
67
67
symbol : * const NSTDChar ,
68
68
) -> NSTDAny {
69
- dlsym ( lib. handle , symbol. cast ( ) )
69
+ dlsym ( lib. handle , symbol)
70
70
}
71
71
72
72
/// Returns a mutable opaque pointer to a symbol in a loaded library.
@@ -90,7 +90,7 @@ pub unsafe extern "C" fn nstd_os_unix_shared_lib_get_mut(
90
90
lib : & mut NSTDUnixSharedLib ,
91
91
symbol : * const NSTDChar ,
92
92
) -> NSTDAnyMut {
93
- dlsym ( lib. handle , symbol. cast ( ) )
93
+ dlsym ( lib. handle , symbol)
94
94
}
95
95
96
96
/// Closes and frees a loaded shared library.
You can’t perform that action at this time.
0 commit comments