mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
20c5270a0c
# Objective This is a value that is and will be used as a domain of curves pretty often. By adding it as a dedicated constant we can get rid of some `unwraps` and function calls. ## Solution added `Interval::UNIT` ## Testing I replaced all occurrences of `interval(0.0, 1.0).unwrap()` with the new `Interval::UNIT` constant in tests and doc tests. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
clippy.toml | ||
README.md |