From 54e5dfd076a87af01025f3c7c92453743307001a Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 24 Oct 2023 15:02:58 +0200 Subject: [PATCH] Fix new clippy lint --- src/windows/cpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/cpu.rs b/src/windows/cpu.rs index 98fd5490e..642483988 100644 --- a/src/windows/cpu.rs +++ b/src/windows/cpu.rs @@ -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; } }