From 90c8f524b68bb551c89b7c165721a896e4d2ff3d Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sun, 21 Jul 2024 21:42:36 +0700 Subject: [PATCH] Fix `clippy::doc_markdown` lints (#28) --- src/runtime/render.rs | 4 ++-- src/schema/layers/visual.rs | 2 +- src/schema/shapes/shape_element.rs | 2 +- src/schema/shapes/stroke.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runtime/render.rs b/src/runtime/render.rs index 5f96712..efa9e18 100644 --- a/src/runtime/render.rs +++ b/src/runtime/render.rs @@ -231,7 +231,7 @@ struct DrawData { stroke: Option, brush: fixed::Brush, alpha: f64, - /// Range into ShapeBatch::geometries + /// Range into `ShapeBatch::geometries` geometry: Range, } @@ -251,7 +251,7 @@ impl DrawData { #[derive(Clone, Debug)] struct GeometryData { - /// Range into ShapeBatch::elements + /// Range into `ShapeBatch::elements` elements: Range, transform: Affine, } diff --git a/src/schema/layers/visual.rs b/src/schema/layers/visual.rs index 19202c9..e559f3b 100644 --- a/src/schema/layers/visual.rs +++ b/src/schema/layers/visual.rs @@ -106,7 +106,7 @@ pub struct VisualLayer { #[serde(rename = "tg")] #[serde(skip_serializing_if = "Option::is_none")] pub tag_name: Option, - /// This is deprecated in favour of transform_before_mask + /// This is deprecated in favour of `transform_before_mask` #[deprecated(note = "please use `transform_before_mask` instead")] #[serde(rename = "cp")] #[serde(skip_serializing_if = "Option::is_none")] diff --git a/src/schema/shapes/shape_element.rs b/src/schema/shapes/shape_element.rs index abbf2b0..17cd661 100644 --- a/src/schema/shapes/shape_element.rs +++ b/src/schema/shapes/shape_element.rs @@ -5,7 +5,7 @@ use crate::schema::constants::blend_mode::BlendMode; use crate::schema::helpers::visual_object::VisualObject; use serde::{Deserialize, Serialize}; -/// Base class for all elements of ShapeLayer and Group +/// Base class for all elements of `ShapeLayer` and `Group` #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)] pub struct ShapeElement { #[serde(flatten)] diff --git a/src/schema/shapes/stroke.rs b/src/schema/shapes/stroke.rs index 4bfd829..576b0a1 100644 --- a/src/schema/shapes/stroke.rs +++ b/src/schema/shapes/stroke.rs @@ -26,7 +26,7 @@ pub struct StrokeShape { #[serde(rename = "ml")] #[serde(skip_serializing_if = "Option::is_none")] pub miter_limit: Option, - /// Animatable alternative to miter_limit + /// Animatable alternative to `miter_limit` #[serde(rename = "ml2")] #[serde(skip_serializing_if = "Option::is_none")] pub miter_limit_alt: Option,