mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Miscellaneous build / tidy fixes.
This commit is contained in:
parent
5158f65810
commit
31e8e418ea
66 changed files with 566 additions and 294 deletions
|
@ -222,7 +222,12 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
fn map_type_params_in_path<F>(path: &Path, params: &[&TypeParam], self_type: &Path, f: &mut F) -> Path
|
||||
fn map_type_params_in_path<F>(
|
||||
path: &Path,
|
||||
params: &[&TypeParam],
|
||||
self_type: &Path,
|
||||
f: &mut F,
|
||||
) -> Path
|
||||
where
|
||||
F: FnMut(&Ident) -> Type,
|
||||
{
|
||||
|
@ -241,9 +246,9 @@ where
|
|||
.iter()
|
||||
.map(|arg| match arg {
|
||||
ty @ &GenericArgument::Lifetime(_) => ty.clone(),
|
||||
&GenericArgument::Type(ref data) => {
|
||||
GenericArgument::Type(map_type_params(data, params, self_type, f))
|
||||
},
|
||||
&GenericArgument::Type(ref data) => GenericArgument::Type(
|
||||
map_type_params(data, params, self_type, f),
|
||||
),
|
||||
&GenericArgument::Binding(ref data) => {
|
||||
GenericArgument::Binding(Binding {
|
||||
ty: map_type_params(&data.ty, params, self_type, f),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue