Closed XertroV closed 2 months ago
I am not sure why, but clicking back into the egui window with a graph shown under WSL2 can cause a panic at self.g.edge_endpoints(e.id()).unwrap().
self.g.edge_endpoints(e.id()).unwrap()
This PR changes the unwrap() to a match which continues if the value is None.
unwrap()
match
Yep, sounds strange. Anyway less unwraps is better :)
I am not sure why, but clicking back into the egui window with a graph shown under WSL2 can cause a panic at
self.g.edge_endpoints(e.id()).unwrap()
.This PR changes the
unwrap()
to amatch
which continues if the value is None.