Fix rustfmt
This commit is contained in:
parent
fc2cca942f
commit
97b7874a3c
@ -849,11 +849,7 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option<String>
|
|||||||
rewrite_macro(mac, None, context, shape, MacroPosition::Expression)
|
rewrite_macro(mac, None, context, shape, MacroPosition::Expression)
|
||||||
}
|
}
|
||||||
ast::TyKind::ImplicitSelf => Some(String::from("")),
|
ast::TyKind::ImplicitSelf => Some(String::from("")),
|
||||||
ast::TyKind::ImplTrait(_, ref it, ref captures) => {
|
ast::TyKind::ImplTrait(_, ref it) => {
|
||||||
// FIXME(precise_capturing): Implement formatting.
|
|
||||||
if captures.is_some() {
|
|
||||||
return None;
|
|
||||||
}
|
|
||||||
// Empty trait is not a parser error.
|
// Empty trait is not a parser error.
|
||||||
if it.is_empty() {
|
if it.is_empty() {
|
||||||
return Some("impl".to_owned());
|
return Some("impl".to_owned());
|
||||||
@ -1120,8 +1116,7 @@ fn join_bounds_inner(
|
|||||||
|
|
||||||
pub(crate) fn opaque_ty(ty: &Option<ptr::P<ast::Ty>>) -> Option<&ast::GenericBounds> {
|
pub(crate) fn opaque_ty(ty: &Option<ptr::P<ast::Ty>>) -> Option<&ast::GenericBounds> {
|
||||||
ty.as_ref().and_then(|t| match &t.kind {
|
ty.as_ref().and_then(|t| match &t.kind {
|
||||||
// FIXME(precise_capturing): Implement support here
|
ast::TyKind::ImplTrait(_, bounds) => Some(bounds),
|
||||||
ast::TyKind::ImplTrait(_, bounds, _) => Some(bounds),
|
|
||||||
_ => None,
|
_ => None,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user