Skip to content

Commit a3f4c4d

Browse files
committed
nit
1 parent 743ff47 commit a3f4c4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/compilers/src/compile/project.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ impl<L: Language, S: CompilerSettings> CompilerSources<'_, L, S> {
479479

480480
// Get current list of mocks from cache. This will be passed to preprocessors and updated
481481
// accordingly, then set back in cache.
482-
let mocks = &mut cache.mocks();
482+
let mut mocks = cache.mocks();
483483

484484
let mut jobs = Vec::new();
485485
for (language, versioned_sources) in self.sources {
@@ -520,7 +520,7 @@ impl<L: Language, S: CompilerSettings> CompilerSources<'_, L, S> {
520520
&project.compiler,
521521
&mut input,
522522
&project.paths,
523-
mocks,
523+
&mut mocks,
524524
)?;
525525
}
526526

@@ -529,7 +529,7 @@ impl<L: Language, S: CompilerSettings> CompilerSources<'_, L, S> {
529529
}
530530

531531
// Update cache with mocks updated by preprocessors.
532-
cache.update_mocks(mocks.clone());
532+
cache.update_mocks(mocks);
533533

534534
let results = if let Some(num_jobs) = jobs_cnt {
535535
compile_parallel(&project.compiler, jobs, num_jobs)

0 commit comments

Comments
 (0)