From 4f154d8207be7320be07477fe3857523b1704977 Mon Sep 17 00:00:00 2001 From: bernard Date: Sat, 13 Dec 2025 21:42:29 +0800 Subject: [rust] Tidy core defaults and migrate docs to README --- components/rust/core/src/api/libloading.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/rust/core/src/api/libloading.rs') diff --git a/components/rust/core/src/api/libloading.rs b/components/rust/core/src/api/libloading.rs index 438f1fb40b..90b33cc92d 100644 --- a/components/rust/core/src/api/libloading.rs +++ b/components/rust/core/src/api/libloading.rs @@ -150,7 +150,7 @@ impl Library { let h = self.handle; forget(self); let rc = libc::dlclose(h); - if rc == 1 { + if rc == 0 { Ok(()) } else { Err(DlError::Close(rc)) -- cgit v1.3.1