summaryrefslogtreecommitdiff
path: root/tests/expectations/tests/dynamic_loading_with_blocklist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expectations/tests/dynamic_loading_with_blocklist.rs')
-rw-r--r--tests/expectations/tests/dynamic_loading_with_blocklist.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/expectations/tests/dynamic_loading_with_blocklist.rs b/tests/expectations/tests/dynamic_loading_with_blocklist.rs
index 930876a4..598780b2 100644
--- a/tests/expectations/tests/dynamic_loading_with_blocklist.rs
+++ b/tests/expectations/tests/dynamic_loading_with_blocklist.rs
@@ -78,20 +78,20 @@ impl TestLib {
P: AsRef<::std::ffi::OsStr>,
{
let library = ::libloading::Library::new(path)?;
- Ok(Self::from_library(library))
+ Self::from_library(library)
}
- pub unsafe fn from_library<L>(library: L) -> Self
+ pub unsafe fn from_library<L>(library: L) -> Result<Self, ::libloading::Error>
where
L: Into<::libloading::Library>,
{
let __library = library.into();
let foo = __library.get(b"foo\0").map(|sym| *sym);
let bar = __library.get(b"bar\0").map(|sym| *sym);
- TestLib {
+ Ok(TestLib {
__library,
foo,
bar,
- }
+ })
}
pub unsafe fn foo(
&self,