mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
util: Clippy lints
This commit is contained in:
@@ -313,6 +313,12 @@ pub struct ProgressInc {
|
||||
timer: Arc<Mutex<Option<Instant>>>,
|
||||
}
|
||||
|
||||
impl Default for ProgressInc {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl ProgressInc {
|
||||
pub fn new() -> Self {
|
||||
eprint!("\x1b[?25l");
|
||||
|
||||
@@ -69,7 +69,7 @@ impl<T: Eq + PartialEq + Clone, const N: usize> RingBuffer<T, N> {
|
||||
|
||||
/// Cast the ringbuffer into a vec
|
||||
pub fn to_vec(&self) -> Vec<T> {
|
||||
self.0.iter().map(|x| x.clone()).collect()
|
||||
self.0.iter().cloned().collect()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user