Skip to content

Commit

Permalink
clippy: fix first doc comment paragraph is too long
Browse files Browse the repository at this point in the history
warning: first doc comment paragraph is too long
   --> src/lib.rs:729:1
    |
729 | / /// Similar to `kind`, but only reports the
730 | | /// [Cargo crate types](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-crate-type-field):
731 | | /// `bin`, `lib`, `rlib`, `dylib`, `cdylib`, `staticlib`, `proc-macro`.
732 | | /// Everything that's not a proc macro or a library of some kind is reported as "bin".
733 | | ///
734 | | /// Other possible values may be added in the future.
    | |_
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
    = note: `#[warn(clippy::too_long_first_doc_paragraph)]` on by default
  • Loading branch information
zjp-CN committed Dec 3, 2024
1 parent 23e9f37 commit 45ceca0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ impl fmt::Display for TargetKind {

/// Similar to `kind`, but only reports the
/// [Cargo crate types](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-crate-type-field):
///
/// `bin`, `lib`, `rlib`, `dylib`, `cdylib`, `staticlib`, `proc-macro`.
/// Everything that's not a proc macro or a library of some kind is reported as "bin".
///
Expand Down

0 comments on commit 45ceca0

Please sign in to comment.