Skip to content

Commit

Permalink
Fix clippy 1.74 errors
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <[email protected]>
  • Loading branch information
bgurney-rh committed Nov 16, 2023
1 parent bb5f634 commit 2e45b72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/strat_engine/backstore/crypt/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ fn tang_dispatch(json: &Value) -> StratisResult<Value> {
})?;
let mut key = keys
.iter()
.find(|&obj| obj.get("key_ops") == Some(&Value::Array(vec![Value::from("verify")])))
.cloned()
.find(|obj| obj.get("key_ops") == Some(&Value::Array(vec![Value::from("verify")])))
.ok_or_else(|| {
StratisError::Msg("Verification key not found in clevis metadata".to_string())
})?;
Expand Down
2 changes: 1 addition & 1 deletion src/engine/strat_engine/thinpool/thinpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2596,7 +2596,7 @@ mod tests {
let mut file = OpenOptions::new()
.create(true)
.write(true)
.open(&new_file)
.open(new_file)
.unwrap();
let mut bytes_written = Bytes(0);
// Write 400 * IEC::Mi
Expand Down

0 comments on commit 2e45b72

Please sign in to comment.