Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
my-vegetable-has-exploded committed Oct 22, 2023
1 parent a031aaf commit 7f6e89b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions core/src/services/cloudflare_kv/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,11 @@ mod test {
response.result[0].metadata,
serde_json::json!({"someMetadataKey": "someMetadataValue"})
);
assert_eq!(response.success, true);
assert!(response.success);
assert!(response.result_info.is_some());
match response.result_info {
Some(result_info) => {
assert_eq!(result_info.count, 1);
assert_eq!(result_info.cursor, "6Ck1la0VxJ0djhidm1MdX2FyDGxLKVeeHZZmORS_8XeSuhz9SjIJRaSa2lnsF01tQOHrfTGAP3R5X1Kv5iVUuMbNKhWNAXHOl6ePB0TUL8nw");
}
None => {}
if let Some(result_info) = response.result_info {
assert_eq!(result_info.count, 1);
assert_eq!(result_info.cursor, "6Ck1la0VxJ0djhidm1MdX2FyDGxLKVeeHZZmORS_8XeSuhz9SjIJRaSa2lnsF01tQOHrfTGAP3R5X1Kv5iVUuMbNKhWNAXHOl6ePB0TUL8nw");
}
}

Expand All @@ -384,6 +381,6 @@ mod test {
assert_eq!(response.errors.len(), 0);
assert_eq!(response.messages.len(), 0);
assert_eq!(response.result, serde_json::json!({}));
assert_eq!(response.success, true);
assert!(response.success);
}
}

0 comments on commit 7f6e89b

Please sign in to comment.