fix: Convince Rust we're using a must_use value in a panicking test

pull/24376/head
Carol (Nichols || Goulding) 2021-12-02 11:00:20 -05:00
parent 5d0fd1c603
commit b21ef26d24
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 1 additions and 1 deletions

View File

@ -566,6 +566,6 @@ mod tests {
#[test]
#[should_panic(expected = "string must be [0-9a-z_]+ got: \"foo bar\"")]
fn illegal_attribute_name() {
Attributes::from(&[("foo bar", "value")]);
let _ = Attributes::from(&[("foo bar", "value")]);
}
}