File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ features = [
5050]
5151
5252[target .'cfg(target_os = "windows")' .dependencies ]
53- libloading = " 0.6.1 "
53+ libloading = " 0.7 "
5454glutin_wgl_sys = { version = " 0.1.4" , path = " ../glutin_wgl_sys" }
5555glutin_egl_sys = { version = " 0.1.4" , path = " ../glutin_egl_sys" }
5656parking_lot = " 0.11"
@@ -59,7 +59,7 @@ parking_lot = "0.11"
5959osmesa-sys = " 0.1"
6060wayland-client = { version = " 0.28" , features = [" dlopen" ], optional = true }
6161wayland-egl = { version = " 0.28" , optional = true }
62- libloading = " 0.6.1 "
62+ libloading = " 0.7 "
6363glutin_egl_sys = { version = " 0.1.4" , path = " ../glutin_egl_sys" }
6464glutin_glx_sys = { version = " 0.1.6" , path = " ../glutin_glx_sys" , optional = true }
6565parking_lot = " 0.11"
Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ impl<T: SymTrait> SymWrapper<T> {
3333 for path in lib_paths {
3434 // Avoid loading from PATH
3535 #[ cfg( target_os = "windows" ) ]
36- let lib = windows:: Library :: load_with_flags ( path, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS )
37- . map ( From :: from) ;
36+ let lib = unsafe {
37+ windows:: Library :: load_with_flags ( path, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS )
38+ . map ( From :: from)
39+ } ;
3840
3941 #[ cfg( not( target_os = "windows" ) ) ]
40- let lib = Library :: new ( path) ;
42+ let lib = unsafe { Library :: new ( path) } ;
4143
4244 if lib. is_ok ( ) {
4345 return Ok ( SymWrapper {
You can’t perform that action at this time.
0 commit comments