Skip to content

Commit

Permalink
redundant_locals
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Jan 19, 2024
1 parent b1a0c9a commit 9e83779
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/rust-analyzer/src/cli/rustc_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ const SUPPORTED_DIAGNOSTICS: &[DiagnosticCode] = &[
];

impl flags::RustcTests {
#[allow(clippy::redundant_locals)]
pub fn run(self) -> Result<()> {
let mut tester = Tester::new()?;
let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui"));
Expand All @@ -246,8 +245,7 @@ impl flags::RustcTests {
let p = p.clone();
move || {
let _guard = stdx::panic_context::enter(p.display().to_string());
let tester = tester;
tester.0.test(p);
{ tester }.0.test(p);
}
}) {
std::panic::resume_unwind(e);
Expand Down

0 comments on commit 9e83779

Please sign in to comment.