Skip to content

Commit d1886f9

Browse files
author
cht
committed
remove useless clone
1 parent 4a710f5 commit d1886f9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/spider.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ impl Information {
201201
}}",
202202
self.func,
203203
self.add,
204-
self.port.clone(),
205-
self.aid.clone(),
204+
self.port,
205+
self.aid,
206206
self.id,
207207
self.path,
208208
self.path,
@@ -425,7 +425,7 @@ impl Information {
425425
self.add,
426426
self.net,
427427
self.id,
428-
self.port.clone()
428+
self.port
429429
)
430430
}
431431
}

src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub async fn run_app(terminal: &mut Terminal<MyBackend>) -> io::Result<()> {
3939
let len = informations.len();
4040
appsub.state = vec![ListState::default(); len];
4141
//appsub.state[0].select(Some(0));
42-
appsub.informations = informations.clone();
42+
appsub.informations = informations;
4343
}
4444
appsub.subscription = utils::get_subs();
4545
appsub.settings_input[0] = utils::start_v2core();

0 commit comments

Comments
 (0)