mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-28 14:29:52 +00:00
Use the existing CString error message
This commit is contained in:
2 files changed
+4
-5
No files matched your search
@@ -1005,12 +1005,12 @@ declare_error_tests! {
|
||||
&[
|
||||
Token::Bytes(b"a\0c"),
|
||||
],
|
||||
Error::Message("unexpected NULL at byte 1".into()),
|
||||
Error::Message("nul byte found in provided data at position: 1".into()),
|
||||
}
|
||||
test_cstring_internal_null_end<CString> {
|
||||
&[
|
||||
Token::Bytes(b"ac\0"),
|
||||
],
|
||||
Error::Message("unexpected NULL at byte 2".into()),
|
||||
Error::Message("nul byte found in provided data at position: 2".into()),
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user