Skip to content

Commit

Permalink
clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bhalleycf committed Apr 6, 2023
1 parent cbcf658 commit c7c142f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions daphne/src/messages/mod_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,31 +412,28 @@ fn test_base64url() {
fn roundtrip_id_base64url() {
let id = AggregationJobId([7; 16]);
assert_eq!(
AggregationJobId::try_from_base64url(&id.to_base64url()).unwrap(),
AggregationJobId::try_from_base64url(id.to_base64url()).unwrap(),
id
);

let id = BatchId([7; 32]);
assert_eq!(BatchId::try_from_base64url(&id.to_base64url()).unwrap(), id);
assert_eq!(BatchId::try_from_base64url(id.to_base64url()).unwrap(), id);

let id = CollectionJobId([7; 16]);
assert_eq!(
CollectionJobId::try_from_base64url(&id.to_base64url()).unwrap(),
CollectionJobId::try_from_base64url(id.to_base64url()).unwrap(),
id
);

let id = Draft02AggregationJobId([13; 32]);
assert_eq!(
Draft02AggregationJobId::try_from_base64url(&id.to_base64url()).unwrap(),
Draft02AggregationJobId::try_from_base64url(id.to_base64url()).unwrap(),
id
);

let id = ReportId([7; 16]);
assert_eq!(
ReportId::try_from_base64url(&id.to_base64url()).unwrap(),
id
);
assert_eq!(ReportId::try_from_base64url(id.to_base64url()).unwrap(), id);

let id = TaskId([7; 32]);
assert_eq!(TaskId::try_from_base64url(&id.to_base64url()).unwrap(), id);
assert_eq!(TaskId::try_from_base64url(id.to_base64url()).unwrap(), id);
}

0 comments on commit c7c142f

Please sign in to comment.