Skip to content

Commit

Permalink
Fix clippy::doc_markdown lints (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Jul 21, 2024
1 parent 69d5704 commit 90c8f52
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/runtime/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ struct DrawData {
stroke: Option<fixed::Stroke>,
brush: fixed::Brush,
alpha: f64,
/// Range into ShapeBatch::geometries
/// Range into `ShapeBatch::geometries`
geometry: Range<usize>,
}

Expand All @@ -251,7 +251,7 @@ impl DrawData {

#[derive(Clone, Debug)]
struct GeometryData {
/// Range into ShapeBatch::elements
/// Range into `ShapeBatch::elements`
elements: Range<usize>,
transform: Affine,
}
Expand Down
2 changes: 1 addition & 1 deletion src/schema/layers/visual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub struct VisualLayer {
#[serde(rename = "tg")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_name: Option<String>,
/// 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")]
Expand Down
2 changes: 1 addition & 1 deletion src/schema/shapes/shape_element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/schema/shapes/stroke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct StrokeShape {
#[serde(rename = "ml")]
#[serde(skip_serializing_if = "Option::is_none")]
pub miter_limit: Option<f64>,
/// 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<FloatValue>,
Expand Down

0 comments on commit 90c8f52

Please sign in to comment.