File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,12 @@ version = "^0.11"
7171default-features = false
7272features = [" multi_thread" ]
7373
74+ [features ]
75+ default = []
76+ # TODO: remove this once PyO3 is updated to 0.23. Currently, this is a bug in PyO3 0.22
77+ # that leaks some of their features in a public macro. However, this was removed in 0.23.
78+ gil-refs = [" pyo3/gil-refs" ]
79+
7480[profile .release ]
7581lto = ' fat'
7682codegen-units = 1
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ where
326326 let mut v = * first;
327327 let mut u: Option < G :: NodeId > = None ;
328328 // Backtrack from this node to find the path
329+ #[ allow( clippy:: unnecessary_map_or) ]
329330 while u. map_or ( true , |u| u != v) {
330331 path. push ( v) ;
331332 u = Some ( v) ;
You can’t perform that action at this time.
0 commit comments