Skip to content

Commit

Permalink
Make new clippy happy (#49)
Browse files Browse the repository at this point in the history
These tests now trigger the "needless-doctest-main" lint.

Signed-off-by: Brian Anderson <[email protected]>
  • Loading branch information
brson authored Feb 21, 2020
1 parent c710964 commit e75d98a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@
//! // ... do some work on the directory ...
//! }
//!
//! fn main() {
//! let scenario = FailScenario::setup();
//! do_fallible_work();
//! scenario.teardown();
//! println!("done");
//! }
//! let scenario = FailScenario::setup();
//! do_fallible_work();
//! scenario.teardown();
//! println!("done");
//! ```
//!
//! Here, the program calls `unwrap` on the result of `read_dir`, a function
Expand Down Expand Up @@ -102,7 +100,6 @@
//!
//! scenario.teardown();
//! }
//! # fn main() { }
//! ```
//!
//! Even if a test does not itself turn on any fail points, code that it runs
Expand Down

0 comments on commit e75d98a

Please sign in to comment.