Skip to content

Commit

Permalink
feat(edition_2021): clippy rustdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
sitkevij committed Feb 13, 2025
1 parent 2713e34 commit 262a3db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rusty-hook.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[hooks]
pre-commit = "cargo fmt --all --verbose && markdownlint-cli2 --config .markdownlint.json *.md && codespell -L crate -w src/*.rs *.md LICENSE *.toml && cargo test && cargo clippy"
pre-commit = "cargo fmt --all --verbose && markdownlint-cli2 --config .markdownlint.json *.md && codespell -L crate -w src/*.rs *.md LICENSE *.toml && cargo test && cargo clippy --workspace --all-targets --verbose --all-features"

[logging]
verbose = true
2 changes: 0 additions & 2 deletions examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ use no_color::*;
/// ## The following code is executed in the simple example
///
/// ```rust
/// fn main() {
/// println!(
/// "Environment variable NO_COLOR {0} found. Now do something.",
/// {
Expand All @@ -29,7 +28,6 @@ use no_color::*;
/// }
/// }
/// );
/// }
/// ```
fn main() {
println!(
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
//!
//! or use cargo add:
//!
//! ```
//! cargo add no_color
//! ```sh
//! $ cargo add no_color
//! ```
use std::env;

Expand Down

0 comments on commit 262a3db

Please sign in to comment.