Explorar el Código

event_graph: Clippy lint

parazyd hace 3 años
padre
commit
246b73d189
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      src/event_graph/model.rs

+ 1 - 3
src/event_graph/model.rs

@@ -374,9 +374,7 @@ where
         let node_a_depth = self.find_depth(node_a, &ancestor);
         let node_a_depth = self.find_depth(node_a, &ancestor);
         let node_b_depth = self.find_depth(node_b, &ancestor);
         let node_b_depth = self.find_depth(node_b, &ancestor);
 
 
-        let diff = (node_b_depth + 1).abs_diff(node_a_depth);
-
-        diff
+        (node_b_depth + 1).abs_diff(node_a_depth)
     }
     }
 
 
     fn _debug(&self) {
     fn _debug(&self) {