Skip to content

Commit

Permalink
style: fix incorrect indentation
Browse files Browse the repository at this point in the history
Turns out rustfmt just givesup on formatting if it can't ensure the code
width is less than `max_width`.

see: rust-lang/rustfmt#3863
  • Loading branch information
0xAdk committed Aug 17, 2024
1 parent 0fb3e80 commit 4e4d33b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/haxe/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ mod roundtrip {

// encoded chars (sub control codes 0x00..=0x1F && 0x7F)
roundtrip_helper(
"y87:%21%22%23%24%25%26%27%28%29%2A%2B%2C%2F%3A%3B%3C%3D%3E%3F%40%5B%5C%5D%5E%60%7B%7C%7D%7E",
&vec![Value::String("!\"#$%&'()*+,/:;<=>?@[\\]^`{|}~".into())],
);
"y87:%21%22%23%24%25%26%27%28%29%2A%2B%2C%2F%3A%3B%3C%3D%3E%3F%40%5B%5C%5D%5E%60%7B%7C%7D%7E",
&vec![Value::String("!\"#$%&'()*+,/:;<=>?@[\\]^`{|}~".into())],
);
}

#[test]
Expand Down Expand Up @@ -442,9 +442,9 @@ mod roundtrip_json {

// encoded chars (sub control codes 0x00..=0x1F && 0x7F)
roundtrip_json_helper(
"y87:%21%22%23%24%25%26%27%28%29%2A%2B%2C%2F%3A%3B%3C%3D%3E%3F%40%5B%5C%5D%5E%60%7B%7C%7D%7E",
&vec![Value::String("!\"#$%&'()*+,/:;<=>?@[\\]^`{|}~".into())],
);
"y87:%21%22%23%24%25%26%27%28%29%2A%2B%2C%2F%3A%3B%3C%3D%3E%3F%40%5B%5C%5D%5E%60%7B%7C%7D%7E",
&vec![Value::String("!\"#$%&'()*+,/:;<=>?@[\\]^`{|}~".into())],
);
}

#[test]
Expand Down
1 change: 0 additions & 1 deletion src/haxe/value/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ impl Normal {
self.0.into_inner()
}
}

0 comments on commit 4e4d33b

Please sign in to comment.