Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jun 24, 2021
1 parent 57cacb6 commit 8f7481a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions postgres-protocol/src/types/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use super::*;
use crate::IsNull;

#[test]
#[allow(clippy::bool_assert_comparison)]
fn bool() {
let mut buf = BytesMut::new();
bool_to_sql(true, &mut buf);
Expand Down Expand Up @@ -113,7 +114,7 @@ fn array() {
.unwrap();

let array = array_from_sql(&buf).unwrap();
assert_eq!(array.has_nulls(), true);
assert!(array.has_nulls());
assert_eq!(array.element_type(), 10);
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
Expand Down Expand Up @@ -150,7 +151,7 @@ fn non_null_array() {
.unwrap();

let array = array_from_sql(&buf).unwrap();
assert_eq!(array.has_nulls(), false);
assert!(array.has_nulls());
assert_eq!(array.element_type(), 10);
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
Expand Down

0 comments on commit 8f7481a

Please sign in to comment.