From 62263e0e619625f2c5dd0b4364b43bd4fefc8ccd Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 30 Jan 2025 08:49:22 +0300 Subject: libsecret: 0.6.0 (private fork) -> 0.7.0 (upstream) libsecret is now maintained again! No need for a private fork. --- libsecret/src/retrievable.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 libsecret/src/retrievable.rs (limited to 'libsecret/src/retrievable.rs') diff --git a/libsecret/src/retrievable.rs b/libsecret/src/retrievable.rs deleted file mode 100644 index 617d8e3..0000000 --- a/libsecret/src/retrievable.rs +++ /dev/null @@ -1,20 +0,0 @@ -use std::collections::HashMap; - -use crate::Retrievable; -use glib::object::IsA; -use glib::translate::*; - -pub trait RetrievableExtManual: 'static { - #[doc(alias = "secret_retrievable_get_attributes")] - #[doc(alias = "get_attributes")] - fn attributes(&self) -> HashMap; -} - -impl> RetrievableExtManual for O { - fn attributes(&self) -> HashMap { - unsafe { - let table = ffi::secret_retrievable_get_attributes(self.as_ref().to_glib_none().0); - FromGlibPtrContainer::from_glib_full(table) - } - } -} -- cgit 1.4.1