Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulmth committed Jan 8, 2024
1 parent 7c9551c commit 82c2bb6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/disclosure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ impl Disclosure {

if decoded.len() == 2 {
Ok(Self {
salt: decoded.first()
salt: decoded
.first()
.ok_or(Error::InvalidDisclosure("invalid salt".to_string()))?
.as_str()
.ok_or(Error::InvalidDisclosure(
Expand All @@ -85,7 +86,8 @@ impl Disclosure {
})
} else if decoded.len() == 3 {
Ok(Self {
salt: decoded.first()
salt: decoded
.first()
.ok_or(Error::InvalidDisclosure("invalid salt".to_string()))?
.as_str()
.ok_or(Error::InvalidDisclosure(
Expand Down

0 comments on commit 82c2bb6

Please sign in to comment.