Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Pflueger <justin.pflueger@fermyon.com>
  • Loading branch information
jpflueger committed Mar 28, 2023
1 parent 1ba697f commit 916b504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ impl TryInto<VerificationRequest> for Option<&Bytes> {
fn try_into(self) -> Result<VerificationRequest, Self::Error> {
match self {
None => Ok(Default::default()),
Some(b) if b.len() == 0 => Ok(Default::default()),
Some(b) if b.is_empty() => Ok(Default::default()),
Some(b) => serde_json::from_slice::<VerificationRequest>(b).map_err(|e| e.into()),
}
}
Expand Down

0 comments on commit 916b504

Please sign in to comment.