From d43f2a98c6eb7cf37d7e54998ee0896ac5a69564 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 7 Oct 2024 07:52:02 +0700 Subject: [PATCH] Fix `clippy::doc_markdown` lints --- .clippy.toml | 2 ++ src/internal/aat.rs | 2 +- src/internal/parse.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .clippy.toml diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 0000000..ece43c8 --- /dev/null +++ b/.clippy.toml @@ -0,0 +1,2 @@ +# Don't warn about these identifiers when using clippy::doc_markdown. +doc-valid-idents = ["ClearType", "HarfBuzz", "OpenType", "PostScript", ".."] diff --git a/src/internal/aat.rs b/src/internal/aat.rs index ba63ee4..9bc878d 100644 --- a/src/internal/aat.rs +++ b/src/internal/aat.rs @@ -8,7 +8,7 @@ pub const KERX: RawTag = raw_tag(b"kerx"); pub const ANKR: RawTag = raw_tag(b"ankr"); pub const KERN: RawTag = raw_tag(b"kern"); -/// Maximum number of times we allow consecutive DONT_ADVANCE states. +/// Maximum number of times we allow consecutive `DONT_ADVANCE` states. const MAX_CYCLES: u16 = 16; /// Gets a value from a lookup table. diff --git a/src/internal/parse.rs b/src/internal/parse.rs index ccede4d..93ddac2 100644 --- a/src/internal/parse.rs +++ b/src/internal/parse.rs @@ -274,7 +274,7 @@ impl<'a> Stream<'a> { } /// An array wrapping a byte buffer over a sequence of values that implement -/// FromBeData. +/// [`FromBeData`]. #[derive(Copy, Clone)] pub struct Array<'a, T: FromBeData> { data: &'a [u8],