Format PR 393 with rustfmt

This commit is contained in:
David Tolnay 2023-10-25 22:03:57 -07:00
parent 8032b5c6f3
commit 1e2a89cadd
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
1 changed files with 6 additions and 2 deletions

View File

@ -453,8 +453,12 @@ fn test_numbers() {
#[test]
fn test_nan() {
// There is no negative NaN in YAML.
assert!(serde_yaml::from_str::<f32>(".nan").unwrap().is_sign_positive());
assert!(serde_yaml::from_str::<f64>(".nan").unwrap().is_sign_positive());
assert!(serde_yaml::from_str::<f32>(".nan")
.unwrap()
.is_sign_positive());
assert!(serde_yaml::from_str::<f64>(".nan")
.unwrap()
.is_sign_positive());
}
#[test]