Format source codes
This commit is contained in:
parent
d3d31a9f75
commit
208ff15954
17 changed files with 187 additions and 159 deletions
11
src/types.rs
11
src/types.rs
|
@ -311,9 +311,9 @@ where
|
|||
context.codemap,
|
||||
// FIXME Would be nice to avoid this allocation,
|
||||
// but I couldn't get the types to work out.
|
||||
inputs.map(|i| ArgumentKind::Regular(Box::new(i))).chain(
|
||||
variadic_arg,
|
||||
),
|
||||
inputs
|
||||
.map(|i| ArgumentKind::Regular(Box::new(i)))
|
||||
.chain(variadic_arg),
|
||||
")",
|
||||
|arg| match *arg {
|
||||
ArgumentKind::Regular(ref ty) => ty.span().lo,
|
||||
|
@ -718,9 +718,8 @@ impl Rewrite for ast::Ty {
|
|||
ast::TyKind::Mac(..) => None,
|
||||
ast::TyKind::ImplicitSelf => Some(String::from("")),
|
||||
ast::TyKind::ImplTrait(ref it) => {
|
||||
it.rewrite(context, shape).map(|it_str| {
|
||||
format!("impl {}", it_str)
|
||||
})
|
||||
it.rewrite(context, shape)
|
||||
.map(|it_str| format!("impl {}", it_str))
|
||||
}
|
||||
ast::TyKind::Err |
|
||||
ast::TyKind::Typeof(..) => unreachable!(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue