From 832f1243a4f67e1383ea0ef8599a03f5f65c8e58 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Mon, 29 Jun 2020 17:29:09 -0400 Subject: [PATCH] Bump libloading to 0.6 --- Cargo.toml | 2 +- src/debug.rs | 2 +- src/descriptor.rs | 2 +- src/device.rs | 2 +- src/dxgi.rs | 6 +++--- src/lib.rs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 34ca18019c..55bd80d873 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ implicit-link = [] [dependencies] bitflags = "1" -libloading = { version = "0.5", optional = true } +libloading = { version = "0.6", optional = true } [dependencies.winapi] version = "0.3" diff --git a/src/debug.rs b/src/debug.rs index 00ec522190..50f675fa29 100644 --- a/src/debug.rs +++ b/src/debug.rs @@ -7,7 +7,7 @@ pub type Debug = WeakPtr; #[cfg(feature = "libloading")] impl crate::D3D12Lib { - pub fn get_debug_interface(&self) -> libloading::Result> { + pub fn get_debug_interface(&self) -> Result, libloading::Error> { type Fun = extern "system" fn( winapi::shared::guiddef::REFIID, *mut *mut winapi::ctypes::c_void, diff --git a/src/descriptor.rs b/src/descriptor.rs index ecf4eed2f7..7a3cd8095e 100644 --- a/src/descriptor.rs +++ b/src/descriptor.rs @@ -211,7 +211,7 @@ impl crate::D3D12Lib { parameters: &[RootParameter], static_samplers: &[StaticSampler], flags: RootSignatureFlags, - ) -> libloading::Result { + ) -> Result { use winapi::um::d3dcommon::ID3DBlob; type Fun = extern "system" fn( *const d3d12::D3D12_ROOT_SIGNATURE_DESC, diff --git a/src/device.rs b/src/device.rs index 6393d9bd75..61e2573a03 100644 --- a/src/device.rs +++ b/src/device.rs @@ -22,7 +22,7 @@ impl crate::D3D12Lib { &self, adapter: WeakPtr, feature_level: crate::FeatureLevel, - ) -> libloading::Result> { + ) -> Result, libloading::Error> { type Fun = extern "system" fn( *mut winapi::um::unknwnbase::IUnknown, winapi::um::d3dcommon::D3D_FEATURE_LEVEL, diff --git a/src/dxgi.rs b/src/dxgi.rs index fe6c961a0e..dee9a5bca3 100644 --- a/src/dxgi.rs +++ b/src/dxgi.rs @@ -55,7 +55,7 @@ pub struct DxgiLib { #[cfg(feature = "libloading")] impl DxgiLib { - pub fn new() -> libloading::Result { + pub fn new() -> Result { libloading::Library::new("dxgi.dll") .map(|lib| DxgiLib { lib, @@ -64,7 +64,7 @@ impl DxgiLib { pub fn create_factory2( &self, flags: FactoryCreationFlags - ) -> libloading::Result> { + ) -> Result, libloading::Error> { type Fun = extern "system" fn( winapi::shared::minwindef::UINT, winapi::shared::guiddef::REFIID, @@ -84,7 +84,7 @@ impl DxgiLib { Ok((factory, hr)) } - pub fn get_debug_interface1(&self) -> libloading::Result> { + pub fn get_debug_interface1(&self) -> Result, libloading::Error> { type Fun = extern "system" fn( winapi::shared::minwindef::UINT, winapi::shared::guiddef::REFIID, diff --git a/src/lib.rs b/src/lib.rs index d1e88e860c..b18c54c5dd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -92,7 +92,7 @@ pub struct D3D12Lib { #[cfg(feature = "libloading")] impl D3D12Lib { - pub fn new() -> libloading::Result { + pub fn new() -> Result { libloading::Library::new("d3d12.dll") .map(|lib| D3D12Lib { lib,