Fix test that relied on matching panic messages.

The panic message for copy_from_slice changed in Rust 1.47.
This commit is contained in:
whitequark 2020-08-17 05:19:09 +00:00
parent 88d01234a8
commit f35057c19f
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ mod test {
}
#[test]
#[should_panic(expected = "destination and source slices have different lengths")]
#[should_panic(expected = "length")]
fn test_from_bytes_too_long() {
let _ = Address::from_bytes(&[0u8; 15]);
}