Skip to content

Commit

Permalink
Remove redundant call to DiagnosticsReporter::ensure (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciektr authored Sep 19, 2024
1 parent e0c7a2a commit 72b4984
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scarb/src/compiler/compilers/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ impl Compiler for TestCompiler {
&& plugin.package.id.source_id == SourceId::for_std()
});

let mut diagnostics_reporter =
let diagnostics_reporter =
build_compiler_config(db, &unit, &test_crate_ids, ws).diagnostics_reporter;

diagnostics_reporter.ensure(db)?;

let test_compilation = {
let _ = trace_span!("compile_test").enter();
let config = TestsCompilationConfig {
Expand Down

0 comments on commit 72b4984

Please sign in to comment.