Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use clonde_from() instead of clone() in app.rs
This change is to fix the clippy warning: warning: assigning the result of `Clone::clone()` may be inefficient --> src/app.rs:279:9 | 279 | *self.graphs_bpf_program.lock().unwrap() = self.selected_program().clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `self.graphs_bpf_program.lock().unwrap().clone_from(&self.selected_program())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones = note: `#[warn(clippy::assigning_clones)]` on by default Signed-off-by: Jose Fernandez <josef@netflix.com>
- Loading branch information