mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Opt out of bounds on type params for #[derive(ToAnimatedZero)]
This commit is contained in:
parent
6f7425059c
commit
ba12a344c6
4 changed files with 29 additions and 157 deletions
|
@ -45,7 +45,7 @@ pub fn derive_parse(stream: TokenStream) -> TokenStream {
|
|||
parse::derive(input).into()
|
||||
}
|
||||
|
||||
#[proc_macro_derive(ToAnimatedZero, attributes(animation))]
|
||||
#[proc_macro_derive(ToAnimatedZero, attributes(animation, zero))]
|
||||
pub fn derive_to_animated_zero(stream: TokenStream) -> TokenStream {
|
||||
let input = syn::parse(stream).unwrap();
|
||||
to_animated_zero::derive(input).into()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue