Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit e75d98a

Browse files
authored
Make new clippy happy (#49)
These tests now trigger the "needless-doctest-main" lint. Signed-off-by: Brian Anderson <[email protected]>
1 parent c710964 commit e75d98a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/lib.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@
3636
//! // ... do some work on the directory ...
3737
//! }
3838
//!
39-
//! fn main() {
40-
//! let scenario = FailScenario::setup();
41-
//! do_fallible_work();
42-
//! scenario.teardown();
43-
//! println!("done");
44-
//! }
39+
//! let scenario = FailScenario::setup();
40+
//! do_fallible_work();
41+
//! scenario.teardown();
42+
//! println!("done");
4543
//! ```
4644
//!
4745
//! Here, the program calls `unwrap` on the result of `read_dir`, a function
@@ -102,7 +100,6 @@
102100
//!
103101
//! scenario.teardown();
104102
//! }
105-
//! # fn main() { }
106103
//! ```
107104
//!
108105
//! Even if a test does not itself turn on any fail points, code that it runs

0 commit comments

Comments
 (0)