Skip to content

Commit

Permalink
Merge pull request GuillaumeGomez#1113 from GuillaumeGomez/windows-cl…
Browse files Browse the repository at this point in the history
…ippy-lint

Fix new clippy lint
  • Loading branch information
GuillaumeGomez authored Oct 24, 2023
2 parents 911d230 + 54e5dfd commit 5b576c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ impl CpusWrapper {
}
self.global
.inner
.set_frequency(self.cpus.get(0).map(|cpu| cpu.frequency()).unwrap_or(0));
.set_frequency(self.cpus.first().map(|cpu| cpu.frequency()).unwrap_or(0));
self.got_cpu_frequency = true;
}
}
Expand Down

0 comments on commit 5b576c1

Please sign in to comment.