mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-09-13 05:55:22 +00:00
chore(types,blahd): fix clippy warnings
This commit is contained in:
parent
b97ce5f29c
commit
401618c129
2 changed files with 12 additions and 12 deletions
|
@ -51,10 +51,10 @@ impl UserIdentityDesc {
|
|||
|
||||
/// Validate signatures of the identity description at given time.
|
||||
pub fn verify(&self, id_url: Option<&IdUrl>, now_timestamp: u64) -> Result<(), VerifyError> {
|
||||
if let Some(id_url) = id_url {
|
||||
if !self.profile.signee.payload.id_urls.contains(id_url) {
|
||||
return Err(VerifyErrorImpl::MissingIdUrl.into());
|
||||
}
|
||||
if let Some(id_url) = id_url
|
||||
&& !self.profile.signee.payload.id_urls.contains(id_url)
|
||||
{
|
||||
return Err(VerifyErrorImpl::MissingIdUrl.into());
|
||||
}
|
||||
if self.id_key != self.profile.signee.user.id_key {
|
||||
return Err(VerifyErrorImpl::ProfileIdKeyMismatch.into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue