Nullus157 / stylish-rs

Apache License 2.0
8 stars 2 forks source link

Avoid change in float rounding behaviour in tests #28

Closed Nemo157 closed 2 years ago

Nemo157 commented 2 years ago

https://github.com/rust-lang/rust/pull/102935 changed the behaviour of format!("{:.0}", 0.5) to round to 0 instead of 1 for consistency. The test case I copied from std was using this, so change to using 1.5 which has the same behaviour on stable and nightly.

Nemo157 commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Build succeeded: