Skip to content

Commit 660e535

Browse files
committed
Introduce ExprKind::IncludedBytes
1 parent 5fee21f commit 660e535

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/expr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ pub(crate) fn format_expr(
399399
}
400400
}
401401
ast::ExprKind::Underscore => Some("_".to_owned()),
402+
ast::ExprKind::IncludedBytes(..) => unreachable!(),
402403
ast::ExprKind::Err => None,
403404
};
404405

src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr
496496
| ast::ExprKind::Continue(..)
497497
| ast::ExprKind::Err
498498
| ast::ExprKind::Field(..)
499+
| ast::ExprKind::IncludedBytes(..)
499500
| ast::ExprKind::InlineAsm(..)
500501
| ast::ExprKind::Let(..)
501502
| ast::ExprKind::Path(..)

0 commit comments

Comments
 (0)