mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-07 23:28:11 +08:00
Fix clippy lints (#1327)
* Fix clippy lints * Update formatting * Remove unsafe send impls * New type for Rc<NodeContainer>
This commit is contained in:
committed by
Keavon Chambers
parent
743803ce04
commit
80cc5bee73
@@ -209,7 +209,7 @@ impl Bezier {
|
||||
let self_points = self.get_points().collect::<Vec<DVec2>>();
|
||||
let other_points = other.get_points().collect::<Vec<DVec2>>();
|
||||
|
||||
self_points.len() == other_points.len() && self_points.into_iter().zip(other_points.into_iter()).all(|(a, b)| a.abs_diff_eq(b, max_abs_diff))
|
||||
self_points.len() == other_points.len() && self_points.into_iter().zip(other_points).all(|(a, b)| a.abs_diff_eq(b, max_abs_diff))
|
||||
}
|
||||
|
||||
/// Returns true if the start, end and handles of the Bezier are all at the same location
|
||||
|
||||
@@ -1010,7 +1010,7 @@ mod tests {
|
||||
fn test_arcs_cubic() {
|
||||
let bezier = Bezier::from_cubic_coordinates(30., 30., 30., 80., 60., 80., 60., 140.);
|
||||
let actual_arcs = bezier.arcs(ArcsOptions::default());
|
||||
let expected_arcs = vec![
|
||||
let expected_arcs = [
|
||||
CircleArc {
|
||||
center: DVec2::new(122.394877, 30.7777189),
|
||||
radius: 92.39815,
|
||||
|
||||
Reference in New Issue
Block a user