1
0
mirror of https://github.com/orhun/kmon synced 2024-06-29 06:24:54 +00:00

refactor: Apply clippy suggestions

This commit is contained in:
Orhun Parmaksız 2024-05-26 20:49:19 +03:00
parent c540d0ffa1
commit 66d775b21c
No known key found for this signature in database
GPG Key ID: F83424824B3E4B90

View File

@ -138,7 +138,7 @@ impl KernelModules<'_> {
if self.args.reverse {
module_list.reverse();
}
self.default_list = module_list.clone();
self.default_list.clone_from(&module_list);
self.list = module_list;
self.scroll_list(ScrollDirection::Top);
Ok(())