Skip to content

Commit

Permalink
Move lint suppression to library level
Browse files Browse the repository at this point in the history
New version of Rust complains about README.md included docs but since
this library is about usage in tests these examples are perfectly fine.

Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
  • Loading branch information
wiktor-k committed Jul 16, 2024
1 parent e56f879 commit e2fa0e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#![doc = include_str!("../README.md")]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
// the docs illustrate the usage in test functions
#![allow(clippy::test_attr_in_doctest)]

/// Error with a stacktrace
///
Expand All @@ -21,7 +23,6 @@ impl<T: std::fmt::Display> From<T> for TestError {
}
}

#[allow(clippy::test_attr_in_doctest)] // the docs illustrate the usage in test functions
/// Unit test result
///
/// This type allows panicking when encountering any type of
Expand Down

0 comments on commit e2fa0e3

Please sign in to comment.