Skip to content

Commit 617ee95

Browse files
committed
Apply clippy suggestion
1 parent 8c2f2b6 commit 617ee95

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl App {
178178
if let Some(graph) = &self.graph_state.graph {
179179
let head_idx = {
180180
let tracks = graph.tracks.lock().unwrap();
181-
tracks.indices.get(&graph.head.oid).map(|idx| *idx)
181+
tracks.indices.get(&graph.head.oid).copied()
182182
};
183183
if let Some(index) = head_idx {
184184
self.graph_state.selected = Some(index);

0 commit comments

Comments
 (0)