aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/spinner.rs
diff options
context:
space:
mode:
authorDaniel Sedlak2024-01-17 18:40:45 +0000
committerGitHub2024-01-17 18:40:45 +0000
commitaf8e524a7d06253fa854bf8954f64312e11d0ea0 (patch)
treed36deaffca3049d67d46aff35fb500644cb700df /helix-term/src/ui/spinner.rs
parentc60ba4ba04de56f37f4f4b19051bc4a1e68b3484 (diff)
Address clippy lints (#9371)
Diffstat (limited to 'helix-term/src/ui/spinner.rs')
-rw-r--r--helix-term/src/ui/spinner.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/spinner.rs b/helix-term/src/ui/spinner.rs
index 68965469..379c4489 100644
--- a/helix-term/src/ui/spinner.rs
+++ b/helix-term/src/ui/spinner.rs
@@ -11,7 +11,7 @@ impl ProgressSpinners {
}
pub fn get_or_create(&mut self, id: usize) -> &mut Spinner {
- self.inner.entry(id).or_insert_with(Spinner::default)
+ self.inner.entry(id).or_default()
}
}