mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
remove todo
This commit is contained in:
parent
9fd34e0c75
commit
68df61ebd9
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
if !from_macro &&
|
||||
let ExprKind::Block(block, _) = expr.kind &&
|
||||
// TODO: Is this enough UnsafeSource::UserProvided, or should CompilerGenerated be also included?
|
||||
block.rules != BlockCheckMode::UnsafeBlock(UnsafeSource::UserProvided)
|
||||
{
|
||||
format!("{code}")
|
||||
|
|
Loading…
Reference in a new issue