Skip to content

Commit 2fa3b8c

Browse files
committed
Fix error message test on Rust beta & nightly
1 parent a299444 commit 2fa3b8c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ewkb.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,8 +1434,7 @@ fn test_read_error() {
14341434
// SELECT 'LINESTRING (10 -20, 0 -0.5)'::geometry
14351435
let ewkb = hex_to_vec("010200000002000000000000000000244000000000000034C00000000000000000000000000000E0BF");
14361436
let poly = PolygonT::<Point>::read_ewkb(&mut ewkb.as_slice());
1437-
assert!(poly.is_err());
1438-
assert_eq!(format!("{:?}", poly), "Err(Read(\"error while reading: Error { repr: Custom(Custom { kind: UnexpectedEof, error: StringError(\\\"failed to fill whole buffer\\\") }) }\"))");
1437+
assert!(poly.is_err()); // UnexpectedEof "failed to fill whole buffer"
14391438
}
14401439

14411440
#[test]

0 commit comments

Comments
 (0)