From c5536c37b59e0efaa6dcd7bc04d07b7bd8696f3c Mon Sep 17 00:00:00 2001 From: Tamo Date: Wed, 11 Dec 2024 18:03:06 +0100 Subject: [PATCH] rename the atomic::name to unit_name --- crates/milli/src/progress.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/milli/src/progress.rs b/crates/milli/src/progress.rs index 40a943bd3..6a4231e91 100644 --- a/crates/milli/src/progress.rs +++ b/crates/milli/src/progress.rs @@ -65,7 +65,7 @@ pub trait NamedStep: 'static + Send + Sync + Default { /// - The name of the step doesn't change /// - The total number of steps doesn't change pub struct AtomicSubStep { - name: Name, + unit_name: Name, current: Arc, total: u32, } @@ -73,13 +73,13 @@ pub struct AtomicSubStep { impl AtomicSubStep { pub fn new(total: u32) -> (Arc, Self) { let current = Arc::new(AtomicU32::new(0)); - (current.clone(), Self { current, total, name: Name::default() }) + (current.clone(), Self { current, total, unit_name: Name::default() }) } } impl Step for AtomicSubStep { fn name(&self) -> Cow<'static, str> { - self.name.name().into() + self.unit_name.name().into() } fn current(&self) -> u32 {