Skip to content

Commit

Permalink
Fix duplicate function name in doctest that wasn't flagged locally
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jul 12, 2020
1 parent a6c1464 commit 39829af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ repos:
- id: clippy
name: clippy
language: system
entry: cargo clippy --tests -- -D warnings
entry: cargo clippy -- -D warnings
types: [rust]
pass_filenames: false
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ use syn::{parse_macro_input, ItemFn, Result};
/// fn example() {
/// println!("CI is defined");
/// }
/// ```
///
/// ```
/// #[realia::env("CI", "true")]
/// fn example() {
/// println!("CI is set to true");
Expand Down

0 comments on commit 39829af

Please sign in to comment.