Mercurial > public > mercurial-scm > hg-stable
comparison rust/hg-core/src/progress.rs @ 52342:a876ab6c3fd5
rust: fix `cargo doc` warnings
It makes sense to keep our doc build happy, even if it is lacking.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 04 Nov 2024 15:17:54 +0100 |
parents | 92e23ba257d1 |
children |
comparison
equal
deleted
inserted
replaced
52341:f69a3f55fa9b | 52342:a876ab6c3fd5 |
---|---|
17 fn complete(self); | 17 fn complete(self); |
18 } | 18 } |
19 | 19 |
20 const PROGRESS_DELAY: Duration = Duration::from_secs(1); | 20 const PROGRESS_DELAY: Duration = Duration::from_secs(1); |
21 | 21 |
22 /// A generic (determinate) progress bar. Stays hidden until [`PROGRESS_DELAY`] | 22 /// A generic (determinate) progress bar. Stays hidden until `PROGRESS_DELAY` |
23 /// to prevent flickering a progress bar for super fast operations. | 23 /// to prevent flickering a progress bar for super fast operations. |
24 pub struct HgProgressBar { | 24 pub struct HgProgressBar { |
25 progress: ProgressBar, | 25 progress: ProgressBar, |
26 has_been_shown: AtomicBool, | 26 has_been_shown: AtomicBool, |
27 } | 27 } |