We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c2f2b6 commit 617ee95Copy full SHA for 617ee95
1 file changed
src/app.rs
@@ -178,7 +178,7 @@ impl App {
178
if let Some(graph) = &self.graph_state.graph {
179
let head_idx = {
180
let tracks = graph.tracks.lock().unwrap();
181
- tracks.indices.get(&graph.head.oid).map(|idx| *idx)
+ tracks.indices.get(&graph.head.oid).copied()
182
};
183
if let Some(index) = head_idx {
184
self.graph_state.selected = Some(index);
0 commit comments