Skip to content

Commit

Permalink
Clippy and format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fmiguelgarcia committed Feb 19, 2024
1 parent b362be7 commit 94840ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/asdr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,11 @@ where
MultiAddress<AccountId, AccountIndex>: Codec,
{
fn caller(&self) -> Option<&AccountId> {
self.signature.as_ref().map(|s| match s.0 {
let sig = self.signature.as_ref()?;
match sig.0 {
MultiAddress::Id(ref id) => Some(id),
_ => None,
})
}
}
}

Expand Down

0 comments on commit 94840ed

Please sign in to comment.