Skip to content

Commit 9f683f6

Browse files
committed
cargo format check
1 parent 2ba7f6d commit 9f683f6

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

editor/src/messages/portfolio/document/graph_operation/graph_operation_message_handler.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,6 @@ fn apply_usvg_stroke(stroke: &usvg::Stroke, modify_inputs: &mut ModifyInputsCont
520520
}
521521
}
522522

523-
524523
fn apply_usvg_fill(fill: &usvg::Fill, modify_inputs: &mut ModifyInputsContext, bounds_transform: DAffine2, graphite_gradient_stops: &HashMap<String, GradientStops>) {
525524
modify_inputs.fill_set(match &fill.paint() {
526525
usvg::Paint::Color(color) => Fill::solid(usvg_color(*color, fill.opacity().get())),

editor/src/messages/portfolio/document_migration.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,8 +1111,6 @@ fn migrate_node(node_id: &NodeId, node: &DocumentNode, network_path: &[NodeId],
11111111
}
11121112
}
11131113

1114-
1115-
11161114
// Upgrade the old "Spline" node to the new "Spline" node
11171115
if reference == DefinitionIdentifier::ProtoNode(graphene_std::vector::spline::IDENTIFIER)
11181116
|| reference == DefinitionIdentifier::ProtoNode(ProtoNodeIdentifier::new("graphene_core::vector::generator_nodes::SplineNode"))

node-graph/libraries/vector-types/src/vector/style.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ mod stroke_paint_migration {
351351
paint_order: PaintOrder,
352352
}
353353

354-
355354
fn default_miter_limit() -> f64 {
356355
4.
357356
}
@@ -384,7 +383,6 @@ mod stroke_paint_migration {
384383
paint_order: old.paint_order,
385384
})
386385
}
387-
388386
}
389387

390388
#[repr(C)]
@@ -411,7 +409,6 @@ pub struct Stroke {
411409
pub paint_order: PaintOrder,
412410
}
413411

414-
415412
impl<'de> serde::Deserialize<'de> for Stroke {
416413
fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
417414
stroke_paint_migration::deserialize_stroke(deserializer)
@@ -435,7 +432,6 @@ impl std::hash::Hash for Stroke {
435432
self.non_scaling.hash(state);
436433
self.paint_order.hash(state);
437434
}
438-
439435
}
440436

441437
impl Stroke {
@@ -455,7 +451,6 @@ impl Stroke {
455451
}
456452
}
457453

458-
459454
pub fn lerp(&self, other: &Self, time: f64) -> Self {
460455
Self {
461456
paint: self.paint.lerp(&other.paint, time),
@@ -475,7 +470,6 @@ impl Stroke {
475470
}
476471
}
477472

478-
479473
/// Get the current stroke color.
480474
pub fn color(&self) -> Option<Color> {
481475
match &self.paint {

node-graph/nodes/vector/src/vector_nodes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ where
294294
paint_order,
295295
};
296296

297-
298297
for vector in content.vector_iter_mut() {
299298
let mut stroke = stroke.clone();
300299
stroke.transform *= *vector.transform;

0 commit comments

Comments
 (0)