Skip to content

Commit 9e83779

Browse files
committed
redundant_locals
1 parent b1a0c9a commit 9e83779

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/rust-analyzer/src/cli/rustc_tests.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ const SUPPORTED_DIAGNOSTICS: &[DiagnosticCode] = &[
226226
];
227227

228228
impl flags::RustcTests {
229-
#[allow(clippy::redundant_locals)]
230229
pub fn run(self) -> Result<()> {
231230
let mut tester = Tester::new()?;
232231
let walk_dir = WalkDir::new(self.rustc_repo.join("tests/ui"));
@@ -246,8 +245,7 @@ impl flags::RustcTests {
246245
let p = p.clone();
247246
move || {
248247
let _guard = stdx::panic_context::enter(p.display().to_string());
249-
let tester = tester;
250-
tester.0.test(p);
248+
{ tester }.0.test(p);
251249
}
252250
}) {
253251
std::panic::resume_unwind(e);

0 commit comments

Comments
 (0)