Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions client/src/dbus/api/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ impl DBusSecret {
})
}

pub(crate) async fn from_inner(
cnx: &zbus::Connection,
inner: DBusSecretInner,
) -> Result<Self, Error> {
pub async fn from_inner(cnx: &zbus::Connection, inner: DBusSecretInner) -> Result<Self, Error> {
Ok(Self {
session: Arc::new(Session::new(cnx, inner.0).await?),
parameters: inner.1,
Expand Down Expand Up @@ -97,6 +94,17 @@ impl DBusSecret {
}
}

impl From<DBusSecret> for DBusSecretInner {
fn from(secret: DBusSecret) -> Self {
Self(
secret.session().inner().path().to_owned().into(),
secret.parameters().to_vec(),
secret.value().to_vec(),
secret.content_type(),
)
}
}

impl Serialize for DBusSecret {
fn serialize<S>(&self, serializer: S) -> std::result::Result<S::Ok, S::Error>
where
Expand Down
2 changes: 0 additions & 2 deletions coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ echo "🧪 Generating coverage for oo7::native_crypto/tokio..."
mkdir -p coverage-raw
cargo tarpaulin \
--package oo7 \
--lib \
--no-default-features \
--features "tracing,tokio,native_crypto" \
--ignore-panics \
Expand All @@ -17,7 +16,6 @@ echo ""
echo "🧪 Generating coverage for oo7::openssl_crypto/tokio..."
cargo tarpaulin \
--package oo7 \
--lib \
--no-default-features \
--features "tracing,tokio,openssl_crypto" \
--ignore-panics \
Expand Down
Loading
Loading