Skip to content

Commit

Permalink
Merge pull request #481 from tkhq/fix/warnings-lthibault
Browse files Browse the repository at this point in the history
Fix linter warnings
  • Loading branch information
lthibault authored Aug 30, 2024
2 parents 262ce39 + a9b3d9d commit 3e5866d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/qos_core/src/protocol/services/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,10 @@ mod test {
let response =
boot_key_forward(&mut state, &manifest_envelope, &pivot)
.unwrap();
match response {
NsmResponse::Attestation { document } => {
assert!(!document.is_empty());
}
_ => panic!(),
if let NsmResponse::Attestation { document } = response {
assert!(!document.is_empty());
} else {
panic!()
};

assert!(handles.pivot_exists());
Expand Down
3 changes: 2 additions & 1 deletion src/qos_net/src/proxy_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ mod test {
let res = decoder.read_to_string(&mut decoded);
assert!(res.is_ok());

// Parse the JSON response body and make sure there is a proper "keys" array in it
// Parse the JSON response body and make sure there is a proper "keys"
// array in it
let json_content: Value = serde_json::from_str(&decoded).unwrap();
assert!(json_content["keys"].is_array());
}
Expand Down

0 comments on commit 3e5866d

Please sign in to comment.