Skip to content

Commit 1d3b99c

Browse files
committed
Fix unused import
This happens because it is only used in the test configuration.
1 parent 8181445 commit 1d3b99c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/remove-emphasis/test.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
use mdbook::MDBook;
2-
31
#[test]
42
fn remove_emphasis_works() {
53
// Tests that the remove-emphasis example works as expected.
64

75
// Workaround for https://github.com/rust-lang/mdBook/issues/1424
86
std::env::set_current_dir("examples/remove-emphasis").unwrap();
9-
let book = MDBook::load(".").unwrap();
7+
let book = mdbook::MDBook::load(".").unwrap();
108
book.build().unwrap();
119
let ch1 = std::fs::read_to_string("book/chapter_1.html").unwrap();
1210
assert!(ch1.contains("This has light emphasis and bold emphasis."));

0 commit comments

Comments
 (0)