mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
style: Reformat recent changes.
This commit is contained in:
parent
7c4f9bbf49
commit
8c004c0858
40 changed files with 571 additions and 212 deletions
|
@ -11,23 +11,23 @@ use to_computed_value;
|
|||
pub fn derive(input: DeriveInput) -> TokenStream {
|
||||
let trait_impl = |from_body, to_body| {
|
||||
quote! {
|
||||
#[inline]
|
||||
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self {
|
||||
match resolved {
|
||||
#from_body
|
||||
}
|
||||
}
|
||||
#[inline]
|
||||
fn from_resolved_value(resolved: Self::ResolvedValue) -> Self {
|
||||
match resolved {
|
||||
#from_body
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn to_resolved_value(
|
||||
self,
|
||||
context: &crate::values::resolved::Context,
|
||||
) -> Self::ResolvedValue {
|
||||
match self {
|
||||
#to_body
|
||||
}
|
||||
}
|
||||
}
|
||||
#[inline]
|
||||
fn to_resolved_value(
|
||||
self,
|
||||
context: &crate::values::resolved::Context,
|
||||
) -> Self::ResolvedValue {
|
||||
match self {
|
||||
#to_body
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
let non_generic_implementation = || {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue