remove todo

This commit is contained in:
Yuri Astrakhan 2023-05-22 20:06:58 -04:00
parent 9fd34e0c75
commit 68df61ebd9

View file

@ -73,7 +73,6 @@ pub fn expr_block<T: LintContext>(
let (code, from_macro) = snippet_block_with_context(cx, expr.span, outer, default, indent_relative_to, app); let (code, from_macro) = snippet_block_with_context(cx, expr.span, outer, default, indent_relative_to, app);
if !from_macro && if !from_macro &&
let ExprKind::Block(block, _) = expr.kind && let ExprKind::Block(block, _) = expr.kind &&
// TODO: Is this enough UnsafeSource::UserProvided, or should CompilerGenerated be also included?
block.rules != BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided) block.rules != BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided)
{ {
format!("{code}") format!("{code}")