fix(types): fix typo

This commit is contained in:
oxalica 2024-09-21 07:37:57 -04:00
parent 5a701b6a5e
commit 5c4dfd4a96

View file

@ -23,7 +23,7 @@ pub struct UserIdentityDesc {
#[derive(Debug, Error)] #[derive(Debug, Error)]
#[error(transparent)] #[error(transparent)]
pub struct VerfiyError(#[from] VerifyErrorImpl); pub struct VerifyError(#[from] VerifyErrorImpl);
#[derive(Debug, Error)] #[derive(Debug, Error)]
enum VerifyErrorImpl { enum VerifyErrorImpl {
@ -45,7 +45,7 @@ impl UserIdentityDesc {
pub const WELL_KNOWN_PATH: &str = "/.well-known/blah/identity.json"; pub const WELL_KNOWN_PATH: &str = "/.well-known/blah/identity.json";
/// Validate signatures of the identity description at given time. /// Validate signatures of the identity description at given time.
pub fn verify(&self, id_url: Option<&IdUrl>, now_timestamp: u64) -> Result<(), VerfiyError> { pub fn verify(&self, id_url: Option<&IdUrl>, now_timestamp: u64) -> Result<(), VerifyError> {
if self.id_key != self.profile.signee.user.id_key { if self.id_key != self.profile.signee.user.id_key {
return Err(VerifyErrorImpl::ProfileIdKeyMismatch.into()); return Err(VerifyErrorImpl::ProfileIdKeyMismatch.into());
} }