diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2023-04-21 01:44:17 -0700 |
|---|---|---|
| committer | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2023-04-21 02:14:04 -0700 |
| commit | 3206960ec660f45169c03afb789f0e4ef4e4f193 (patch) | |
| tree | bb881e95440ce04b8cccc428cfdb76c619d847ca /src/tools/rustfmt | |
| parent | f92294f76b130f44659a2e8a1fc4b3bd16c5b20b (diff) | |
| download | rust-3206960ec660f45169c03afb789f0e4ef4e4f193.tar.gz rust-3206960ec660f45169c03afb789f0e4ef4e4f193.zip | |
minor tweaks
Diffstat (limited to 'src/tools/rustfmt')
| -rw-r--r-- | src/tools/rustfmt/src/expr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/rustfmt/src/expr.rs b/src/tools/rustfmt/src/expr.rs index b76e3a2a87c..a0882eff707 100644 --- a/src/tools/rustfmt/src/expr.rs +++ b/src/tools/rustfmt/src/expr.rs @@ -345,7 +345,6 @@ pub(crate) fn format_expr( // 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 @@ pub(crate) fn format_expr( } } 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!() } |
