Skip to content

Commit

Permalink
Fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aon committed Aug 10, 2023
1 parent 60e815a commit 41f4d8b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions detectors/unprotected-mapping-operation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ extern crate rustc_hir;
extern crate rustc_middle;
extern crate rustc_span;

use clippy_utils::diagnostics::span_lint;
use std::collections::HashSet;

use clippy_utils::diagnostics::span_lint;
use rustc_hir::QPath;
use rustc_hir::{
intravisit::{walk_expr, Visitor},
Expand Down Expand Up @@ -148,7 +149,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
&caller_and_map_ops,
false,
&mut vec![],
&mut HashSet::<BasicBlock>::default()
&mut HashSet::<BasicBlock>::default(),
);
for place in unchecked_places {
span_lint(
Expand Down Expand Up @@ -229,7 +230,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
caller_and_map_ops,
comparison_with_caller,
tainted_places,
visited_bbs
visited_bbs,
));
}
return ret_vec;
Expand Down Expand Up @@ -277,7 +278,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
caller_and_map_ops,
after_comparison,
tainted_places,
visited_bbs
visited_bbs,
));
}
}
Expand All @@ -290,7 +291,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
caller_and_map_ops,
after_comparison,
tainted_places,
visited_bbs
visited_bbs,
));
}
TerminatorKind::Yield { resume, .. } => {
Expand All @@ -300,7 +301,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
caller_and_map_ops,
after_comparison,
tainted_places,
visited_bbs
visited_bbs,
));
}
TerminatorKind::FalseEdge { real_target, .. }
Expand All @@ -311,7 +312,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
caller_and_map_ops,
after_comparison,
tainted_places,
visited_bbs
visited_bbs,
));
}
TerminatorKind::InlineAsm { destination, .. } => {
Expand All @@ -322,7 +323,7 @@ impl<'tcx> LateLintPass<'tcx> for UnprotectedMappingOperation {
caller_and_map_ops,
after_comparison,
tainted_places,
visited_bbs
visited_bbs,
));
}
}
Expand Down

0 comments on commit 41f4d8b

Please sign in to comment.