Migrate to latest revision of age-core and age-plugin

This commit is contained in:
Jack Grigg
2026-04-07 05:50:59 +01:00
parent 631f4426e1
commit 2a4d129548
5 changed files with 43 additions and 38 deletions
+4 -9
View File
@@ -1,8 +1,8 @@
//! Structs for handling YubiKeys.
use age_core::primitives::bech32_encode;
use age_core::secrecy::{ExposeSecret, SecretString};
use age_plugin::{identity, Callbacks};
use bech32::{ToBase32, Variant};
use dialoguer::Password;
use log::{debug, error, warn};
use std::convert::Infallible;
@@ -422,14 +422,9 @@ pub struct Stub {
impl fmt::Display for Stub {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(
bech32::encode(
IDENTITY_PREFIX,
self.to_bytes().to_base32(),
Variant::Bech32,
)
.expect("HRP is valid")
.to_uppercase()
.as_str(),
bech32_encode(IDENTITY_PREFIX, &self.to_bytes())
.to_uppercase()
.as_str(),
)
}
}