Skip to content

Commit 1226d41

Browse files
committed
chore/fix-linters
1 parent a06dca9 commit 1226d41

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/draw/displays_default/edge.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<N: Clone, E: Clone, Ty: EdgeType, Ix: IndexType, D: DisplayNode<N, E, Ty, I
132132
};
133133
if ctx.is_directed {
134134
builder = builder.with_tip(&tip_props);
135-
};
135+
}
136136
let straight_shapes = builder.build();
137137
res.extend(straight_shapes);
138138

@@ -176,7 +176,7 @@ impl<N: Clone, E: Clone, Ty: EdgeType, Ix: IndexType, D: DisplayNode<N, E, Ty, I
176176
};
177177
if ctx.is_directed {
178178
builder = builder.with_tip(&tip_props);
179-
};
179+
}
180180
let curved_shapes = builder.build();
181181
let Some(Shape::CubicBezier(line_curved)) = curved_shapes.first() else {
182182
panic!("invalid shape type")

src/layouts/hierarchical/layout.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Layout<State> for Hierarchical {
5555
let curr_max_col = build_tree(g, &mut visited, root_idx, 0, i);
5656
if curr_max_col > max_col {
5757
max_col = curr_max_col;
58-
};
58+
}
5959
});
6060

6161
self.state.triggered = true;
@@ -99,14 +99,14 @@ where
9999
.for_each(|(i, neighbour_idx)| {
100100
if visited.contains(neighbour_idx) {
101101
return;
102-
};
102+
}
103103

104104
visited.insert(*neighbour_idx);
105105

106106
let curr_max_col = build_tree(g, visited, neighbour_idx, start_row + 1, start_col + i);
107107
if curr_max_col > max_col {
108108
max_col = curr_max_col;
109-
};
109+
}
110110
});
111111

112112
max_col

src/metadata.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ impl Bounds {
3636
let loc = n.location();
3737
if loc.x + size < self.min.x {
3838
self.min.x = loc.x + size;
39-
};
39+
}
4040
if loc.x + size > self.max.x {
4141
self.max.x = loc.x + size;
42-
};
42+
}
4343
if loc.y - size < self.min.y {
4444
self.min.y = loc.y - size;
45-
};
45+
}
4646
if loc.y + size > self.max.y {
4747
self.max.y = loc.y + size;
48-
};
48+
}
4949
}
5050
}
5151

0 commit comments

Comments
 (0)