mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
style: Drop fallback attribute from animate and distance.
Still keep the discriminant checks to avoid generating terrible code. Differential Revision: https://phabricator.services.mozilla.com/D62329
This commit is contained in:
parent
239302b1ed
commit
ef2d934dac
4 changed files with 4 additions and 34 deletions
|
@ -109,9 +109,6 @@ pub fn animate_multiplicative_factor(
|
|||
/// If a variant is annotated with `#[animation(error)]`, the corresponding
|
||||
/// `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)]`.
|
||||
///
|
||||
/// Trait bounds for type parameter `Foo` can be opted out of with
|
||||
/// `#[animation(no_bound(Foo))]` on the type definition, trait bounds for
|
||||
/// fields can be opted into with `#[animation(field_bound)]` on the field.
|
||||
|
|
|
@ -19,9 +19,6 @@ use std::ops::Add;
|
|||
/// If a variant is annotated with `#[animation(error)]`, the corresponding
|
||||
/// `match` arm returns an error.
|
||||
///
|
||||
/// If the two values are not similar, an error is returned unless a fallback
|
||||
/// function has been specified through `#[distance(fallback)]`.
|
||||
///
|
||||
/// Trait bounds for type parameter `Foo` can be opted out of with
|
||||
/// `#[animation(no_bound(Foo))]` on the type definition, trait bounds for
|
||||
/// fields can be opted into with `#[distance(field_bound)]` on the field.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue