@@ -47,29 +47,25 @@ fn assert_encode_format(
4747
4848///|
4949test " built-in ToSql compatibility remains stable " {
50- assert_encode_ok(true , Type ::bool())
51- assert_encode_ok(1 , Type ::int2())
52- assert_encode_ok(1 , Type ::int4())
53- assert_encode_wrong_type(1 , Type ::int8())
54- assert_encode_ok(1L , Type ::int8())
55- assert_encode_ok(1U , Type ::oid_type())
56- assert_encode_ok(Float ::from_double(1.5) , Type ::float4())
57- assert_encode_ok(1.5 , Type ::float8())
58- assert_encode_ok("moonbit" , Type ::text())
59- assert_encode_ok("moonbit" , Type ::varchar())
60- assert_encode_ok(b"abc" , Type ::bytea())
61- assert_encode_ok(b"1234567890abcdef" , Type ::uuid())
50+ assert_encode_ok(true , Type ::bool())
51+ assert_encode_ok(1, Type ::int2())
52+ assert_encode_ok(1, Type ::int4())
53+ assert_encode_wrong_type(1, Type ::int8())
54+ assert_encode_ok(1L , Type ::int8())
55+ assert_encode_ok(1U , Type ::oid_type())
56+ assert_encode_ok(Float ::from_double(1.5), Type ::float4())
57+ assert_encode_ok(1.5, Type ::float8())
58+ assert_encode_ok("moonbit", Type ::text())
59+ assert_encode_ok("moonbit", Type ::varchar())
60+ assert_encode_ok(b"abc", Type ::bytea())
61+ assert_encode_ok(b"1234567890abcdef", Type ::uuid())
6262}
6363
6464///|
6565test " built-in wire formats remain stable " {
66- assert_encode_format(true , Type ::bool(), WireFormat ::Binary )
67- assert_encode_format("moonbit" , Type ::text(), WireFormat ::Text )
68- assert_encode_format(
69- (None : String? ) ,
70- Type ::text(),
71- WireFormat ::Binary ,
72- )
66+ assert_encode_format(true , Type ::bool(), WireFormat ::Binary )
67+ assert_encode_format("moonbit", Type ::text(), WireFormat ::Text )
68+ assert_encode_format((None : String? ), Type ::text(), WireFormat ::Binary )
7369}
7470
7571///|
0 commit comments