Skip to content

Commit 1accf49

Browse files
committed
Fixed clippy errors
1 parent 4a2cf42 commit 1accf49

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/common/src/gdpr.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ mod tests {
237237
let consent = get_consent_from_request(&req);
238238
assert!(consent.is_some());
239239
let consent = consent.unwrap();
240-
assert_eq!(consent.analytics, true);
241-
assert_eq!(consent.advertising, false);
242-
assert_eq!(consent.functional, true);
240+
assert!(consent.analytics);
241+
assert!(!consent.advertising);
242+
assert!(consent.functional);
243243
}
244244

245245
#[test]
@@ -300,9 +300,9 @@ mod tests {
300300
// Check response body
301301
let body = response.into_body_str();
302302
let returned_consent: GdprConsent = serde_json::from_str(&body).unwrap();
303-
assert_eq!(returned_consent.analytics, true);
304-
assert_eq!(returned_consent.advertising, true);
305-
assert_eq!(returned_consent.functional, false);
303+
assert!(returned_consent.analytics);
304+
assert!(returned_consent.advertising);
305+
assert!(!returned_consent.functional);
306306
}
307307

308308
#[test]

0 commit comments

Comments
 (0)