mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
minor tweaks
This commit is contained in:
+1
-2
@@ -345,7 +345,6 @@ fn needs_space_after_range(rhs: &ast::Expr) -> bool {
|
||||
// Style Guide RFC for InlineAsm variant pending
|
||||
// https://github.com/rust-dev-tools/fmt-rfcs/issues/152
|
||||
ast::ExprKind::InlineAsm(..) => Some(context.snippet(expr.span).to_owned()),
|
||||
ast::ExprKind::OffsetOf(..) => Some(context.snippet(expr.span).to_owned()),
|
||||
ast::ExprKind::TryBlock(ref block) => {
|
||||
if let rw @ Some(_) =
|
||||
rewrite_single_line_block(context, "try ", block, Some(&expr.attrs), None, shape)
|
||||
@@ -400,7 +399,7 @@ fn needs_space_after_range(rhs: &ast::Expr) -> bool {
|
||||
}
|
||||
}
|
||||
ast::ExprKind::Underscore => Some("_".to_owned()),
|
||||
ast::ExprKind::FormatArgs(..) | ast::ExprKind::IncludedBytes(..) => {
|
||||
ast::ExprKind::FormatArgs(..) | ast::ExprKind::IncludedBytes(..) | ast::ExprKind::OffsetOf(..) => {
|
||||
// These do not occur in the AST because macros aren't expanded.
|
||||
unreachable!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user