mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Make rust generate better code for derive(Animate) and derive(ComputeSquaredDistance).
See https://github.com/rust-lang/rust/issues/68867. This technically changes the semantics of #[animate(fallback)] and such when combined with #[animate(error)]. But no such combination exists and the new semantics are perfectly reasonable as well, IMHO. Differential Revision: https://phabricator.services.mozilla.com/D61761
This commit is contained in:
parent
6876fed6e0
commit
71b414f9dc
4 changed files with 105 additions and 89 deletions
|
@ -107,7 +107,7 @@ pub fn animate_multiplicative_factor(
|
|||
/// be equal or an error is returned.
|
||||
///
|
||||
/// If a variant is annotated with `#[animation(error)]`, the corresponding
|
||||
/// `match` arm is not generated.
|
||||
/// `match` arm returns an error.
|
||||
///
|
||||
/// If the two values are not similar, an error is returned unless a fallback
|
||||
/// function has been specified through `#[animate(fallback)]`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue