зеркало из https://github.com/mozilla/gecko-dev.git
9de9318c48
* Use debug_unreachable for really unreachable code (having a release unreachable!() there gives us little to no benefit, as a borked union can already confuse us into reading an arbitrary pointer as a CalcPercentage). * Avoid a clone of the calc variant when clamping. We only need to mutate the clamping mode. This was the only clamp_to_non_negative function that didn't consume the value. Differential Revision: https://phabricator.services.mozilla.com/D63584 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
components | ||
ports/geckolib | ||
tests/unit | ||
moz.build | ||
rustfmt.toml |