Skip to content

Commit

Permalink
Avoid doc-markdown lints. (#241)
Browse files Browse the repository at this point in the history
* Add some valid words that aren't identifiers to clippy.toml
  to avoid warnings about the use of these terms not being within
  backticks.
* Enable the warning for `clippy::doc_markdown` so that it gets
  maintained cleanly going forward.
  • Loading branch information
waywardmonkeys authored Oct 5, 2023
1 parent 2af84c8 commit b6e651c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
doc-valid-idents = ["CoreText", "DirectWrite", "FreeType", "HarfBuzz", "OpenType", ".."]
1 change: 1 addition & 0 deletions harfbuzz-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
//! - `bundled` - Use the bundled copy of the harfbuzz library rather than one installed on the system.

#![no_std]
#![warn(clippy::doc_markdown)]

#[cfg(all(target_vendor = "apple", feature = "coretext"))]
pub mod coretext;
Expand Down
2 changes: 1 addition & 1 deletion harfbuzz/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! - `bundled` - Use the bundled copy of the harfbuzz library rather than one installed on the system.

#![no_std]
#![warn(missing_docs)]
#![warn(clippy::doc_markdown, missing_docs)]
#![deny(
trivial_numeric_casts,
unstable_features,
Expand Down

0 comments on commit b6e651c

Please sign in to comment.