Skip to content

Commit

Permalink
clippy lint book remove duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
kayagokalp committed Oct 25, 2024
1 parent f6ce62a commit d2c1c4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions book/src/lint_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,6 @@ if no suggestion can be made.
List of full paths of macros and functions, that can fail. If a test, or a function
that the test calls contains a call to any one of these, lint will mark the test fallible.

By default this macros are defined as `assert!`, `assert_eq!`, `panic!`.

**Default Value:** `["core::panic", "core::assert", "core::assert_eq", "core::assert_ne"]`

---
Expand Down Expand Up @@ -872,8 +870,6 @@ List of full paths of macros and functions, that we want to mark as "not going t
This allows us to make the lint more focused on actual short comings of our test suite
by marking common routines non-fallible, even though they are fallible.

By default this list contains: `println!`, `print!`, `dbg!`.

**Default Value:** `["std::print", "std::println", "std::dbg", "std::eprint", "std::eprintln"]`

---
Expand Down
4 changes: 0 additions & 4 deletions clippy_config/src/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,6 @@ define_Conf! {
suppress_restriction_lint_in_const: bool = false,
/// List of full paths of macros and functions, that can fail. If a test, or a function
/// that the test calls contains a call to any one of these, lint will mark the test fallible.
///
/// By default this macros are defined as `assert!`, `assert_eq!`, `panic!`.
#[lints(test_without_fail_case)]
test_without_fail_case_fallible_paths: Vec<String> =
DEFAULT_FALLIBLE_PATHS.iter().map(ToString::to_string).collect(),
Expand All @@ -660,8 +658,6 @@ define_Conf! {
/// List of full paths of macros and functions, that we want to mark as "not going to fail".
/// This allows us to make the lint more focused on actual short comings of our test suite
/// by marking common routines non-fallible, even though they are fallible.
///
/// By default this list contains: `println!`, `print!`, `dbg!`.
#[lints(test_without_fail_case)]
test_without_fail_case_non_fallible_paths: Vec<String> =
DEFAULT_NONFALLIBLE_PATHS.iter().map(ToString::to_string).collect(),
Expand Down

0 comments on commit d2c1c4b

Please sign in to comment.