diff --git a/ash/src/entry_libloading.rs b/ash/src/entry_libloading.rs index 9a392bc..4ff55f3 100644 --- a/ash/src/entry_libloading.rs +++ b/ash/src/entry_libloading.rs @@ -62,7 +62,7 @@ impl EntryCustom> { /// # Ok(()) } /// ``` pub unsafe fn new() -> Result { - Self::with_library(&LIB_PATH) + Self::with_library(LIB_PATH) } /// Load Vulkan library at `path` @@ -70,7 +70,7 @@ impl EntryCustom> { /// # Safety /// `dlopen`ing native libraries is inherently unsafe. The safety guidelines /// for [`Library::new`] and [`Library::get`] apply here. - pub unsafe fn with_library(path: &impl AsRef) -> Result { + pub unsafe fn with_library(path: impl AsRef) -> Result { let lib = Library::new(path).map_err(LoadingError).map(Arc::new)?; Ok(Self::new_custom(lib, |vk_lib, name| {