Update the wasi-crypto spec

This commit is contained in:
Alex Crichton
2021-02-17 14:29:38 -08:00
committed by Andrew Brown
parent 250f11c572
commit 9ab5fa26cf
5 changed files with 14 additions and 23 deletions

View File

@@ -111,7 +111,7 @@ impl super::wasi_ephemeral_crypto_common::WasiEphemeralCryptoCommon for WasiCryp
Ok(self.secrets_manager_invalidate(
secrets_manager_handle.into(),
key_id,
key_version.into(),
Version(key_version),
)?)
}
}
@@ -125,15 +125,3 @@ impl From<guest_types::AlgorithmType> for AlgorithmType {
}
}
}
impl From<guest_types::Version> for Version {
fn from(version: guest_types::Version) -> Self {
Version(version.into())
}
}
impl From<Version> for guest_types::Version {
fn from(version: Version) -> Self {
version.into()
}
}