Skip to content

Commit

Permalink
Fix test that relied on matching panic messages.
Browse files Browse the repository at this point in the history
The panic message for copy_from_slice changed in Rust 1.47.
  • Loading branch information
whitequark committed Aug 17, 2020
1 parent 39c41af commit 7948edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wire/ipv6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit 7948edc

Please sign in to comment.