Skip to content

Commit

Permalink
[tests] Fix doctest which failed to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlcctrlv committed Jan 6, 2022
1 parent 79aaa7a commit 807f7c0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/glif/mfek/traits.rs
Expand Up @@ -3,12 +3,15 @@ use crate::{outline, point};

use std::collections::VecDeque;

type MFEKOutlineContourOperations<PD> = VecDeque<Option<ContourOperations<PD>>>;
pub type MFEKOutlineContourOperations<PD> = VecDeque<Option<ContourOperations<PD>>>;
/// Vec (layers) → Vec (contours) → which may or may not have any operations
/// ```rust
/// ```
/// # use glifparser::glif::mfek::ContourOperations;
/// # fn doctest<PD: glifparser::PointData>() ->
/// Vec<Vec<Option<ContourOperations<PD>>>>
/// # { vec![] }
/// ```
type MFEKGlifContourOperations<PD> = VecDeque<VecDeque<Option<ContourOperations<PD>>>>;
pub type MFEKGlifContourOperations<PD> = VecDeque<MFEKOutlineContourOperations<PD>>;
impl<PD: PointData> PointData for MFEKOutlineContourOperations<PD> {}
impl<PD: PointData> PointData for MFEKGlifContourOperations<PD> {}

Expand Down

0 comments on commit 807f7c0

Please sign in to comment.