Skip to content

Commit 06fd61a

Browse files
djcrami3l
authored andcommitted
Discard unnecessary layer of Arc
1 parent cd612e0 commit 06fd61a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cli/common.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,15 @@ pub(crate) fn read_line() -> Result<String> {
125125
}
126126

127127
pub(super) struct Notifier {
128-
tracker: Arc<Mutex<DownloadTracker>>,
128+
tracker: Mutex<DownloadTracker>,
129129
ram_notice_shown: RefCell<bool>,
130130
verbose: bool,
131131
}
132132

133133
impl Notifier {
134134
pub(super) fn new(verbose: bool, quiet: bool) -> Self {
135135
Self {
136-
tracker: Arc::new(Mutex::new(DownloadTracker::new_with_display_progress(
137-
!quiet,
138-
))),
136+
tracker: Mutex::new(DownloadTracker::new_with_display_progress(!quiet)),
139137
ram_notice_shown: RefCell::new(false),
140138
verbose,
141139
}

0 commit comments

Comments
 (0)