Skip to content

Commit 8f7481a

Browse files
committed
fix clippy
1 parent 57cacb6 commit 8f7481a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

postgres-protocol/src/types/test.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use super::*;
66
use crate::IsNull;
77

88
#[test]
9+
#[allow(clippy::bool_assert_comparison)]
910
fn bool() {
1011
let mut buf = BytesMut::new();
1112
bool_to_sql(true, &mut buf);
@@ -113,7 +114,7 @@ fn array() {
113114
.unwrap();
114115

115116
let array = array_from_sql(&buf).unwrap();
116-
assert_eq!(array.has_nulls(), true);
117+
assert!(array.has_nulls());
117118
assert_eq!(array.element_type(), 10);
118119
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
119120
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
@@ -150,7 +151,7 @@ fn non_null_array() {
150151
.unwrap();
151152

152153
let array = array_from_sql(&buf).unwrap();
153-
assert_eq!(array.has_nulls(), false);
154+
assert!(array.has_nulls());
154155
assert_eq!(array.element_type(), 10);
155156
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
156157
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);

0 commit comments

Comments
 (0)