This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -212,12 +212,12 @@ impl InitActionContext {
212
212
show_warnings : config. show_warnings ,
213
213
use_black_list : config. use_crate_blacklist ,
214
214
active_build_count : self . active_build_count . clone ( ) ,
215
- notifier : Box :: new ( BuildDiagnosticsNotifier :: new ( & out) ) ,
215
+ notifier : Box :: new ( BuildDiagnosticsNotifier :: new ( out. clone ( ) ) ) ,
216
216
blocked_threads : vec ! [ ] ,
217
217
}
218
218
} ;
219
219
220
- let notifier = Box :: new ( BuildProgressNotifier :: new ( & out) ) ;
220
+ let notifier = Box :: new ( BuildProgressNotifier :: new ( out. clone ( ) ) ) ;
221
221
222
222
self . active_build_count . fetch_add ( 1 , Ordering :: SeqCst ) ;
223
223
self . build_queue
Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ pub struct BuildProgressNotifier<O: Output> {
66
66
}
67
67
68
68
impl < O : Output > BuildProgressNotifier < O > {
69
- pub fn new ( out : & O ) -> BuildProgressNotifier < O > {
69
+ pub fn new ( out : O ) -> BuildProgressNotifier < O > {
70
70
BuildProgressNotifier {
71
- out : out . clone ( ) ,
71
+ out,
72
72
progress_params : new_progress_params ( "Build" . into ( ) ) ,
73
73
}
74
74
}
@@ -104,9 +104,9 @@ pub struct BuildDiagnosticsNotifier<O: Output> {
104
104
}
105
105
106
106
impl < O : Output > BuildDiagnosticsNotifier < O > {
107
- pub fn new ( out : & O ) -> BuildDiagnosticsNotifier < O > {
107
+ pub fn new ( out : O ) -> BuildDiagnosticsNotifier < O > {
108
108
BuildDiagnosticsNotifier {
109
- out : out . clone ( ) ,
109
+ out,
110
110
progress_params : new_progress_params ( "Diagnostics" . into ( ) ) ,
111
111
}
112
112
}
You can’t perform that action at this time.
0 commit comments