fix clippy
This commit is contained in:
parent
57cacb65fe
commit
8f7481a86c
@ -6,6 +6,7 @@ use super::*;
|
|||||||
use crate::IsNull;
|
use crate::IsNull;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[allow(clippy::bool_assert_comparison)]
|
||||||
fn bool() {
|
fn bool() {
|
||||||
let mut buf = BytesMut::new();
|
let mut buf = BytesMut::new();
|
||||||
bool_to_sql(true, &mut buf);
|
bool_to_sql(true, &mut buf);
|
||||||
@ -113,7 +114,7 @@ fn array() {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let array = array_from_sql(&buf).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.element_type(), 10);
|
||||||
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
|
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
|
||||||
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
|
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
|
||||||
@ -150,7 +151,7 @@ fn non_null_array() {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let array = array_from_sql(&buf).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.element_type(), 10);
|
||||||
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
|
assert_eq!(array.dimensions().collect::<Vec<_>>().unwrap(), dimensions);
|
||||||
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
|
assert_eq!(array.values().collect::<Vec<_>>().unwrap(), values);
|
||||||
|
Loading…
Reference in New Issue
Block a user