File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 33
33
terminal. hide_cursor ( ) . unwrap ( ) ;
34
34
let state = {
35
35
let mut state = UIState :: default ( ) ;
36
- state. interface_name = opts. interface . clone ( ) ;
36
+ state. interface_name . clone_from ( & opts. interface ) ;
37
37
state. unit_family = opts. render_opts . unit_family . into ( ) ;
38
38
state. cumulative_mode = opts. render_opts . total_utilization ;
39
39
state
Original file line number Diff line number Diff line change @@ -128,7 +128,9 @@ impl UIState {
128
128
. or_default ( ) ;
129
129
connection_data. total_bytes_downloaded += connection_info. total_bytes_downloaded ;
130
130
connection_data. total_bytes_uploaded += connection_info. total_bytes_uploaded ;
131
- connection_data. interface_name = connection_info. interface_name . clone ( ) ;
131
+ connection_data
132
+ . interface_name
133
+ . clone_from ( & connection_info. interface_name ) ;
132
134
data_for_remote_address. total_bytes_downloaded +=
133
135
connection_info. total_bytes_downloaded ;
134
136
data_for_remote_address. total_bytes_uploaded +=
You can’t perform that action at this time.
0 commit comments