Skip to content

Commit 9229e80

Browse files
committed
Clean up some remaining uses of mdbook_core
These should be using the appropriate high-level crate.
1 parent ae6c452 commit 9229e80

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/mdbook-driver/src/mdbook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl MDBook {
140140
///
141141
/// ```no_run
142142
/// # use mdbook_driver::MDBook;
143-
/// # use mdbook_core::book::BookItem;
143+
/// # use mdbook_driver::book::BookItem;
144144
/// # let book = MDBook::load("mybook").unwrap();
145145
/// for item in book.iter() {
146146
/// match *item {

examples/nop-preprocessor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ fn handle_preprocessing(pre: &dyn Preprocessor) -> Result<()> {
3737
let (ctx, book) = mdbook_preprocessor::parse_input(io::stdin())?;
3838

3939
let book_version = Version::parse(&ctx.mdbook_version)?;
40-
let version_req = VersionReq::parse(mdbook_core::MDBOOK_VERSION)?;
40+
let version_req = VersionReq::parse(mdbook_preprocessor::MDBOOK_VERSION)?;
4141

4242
if !version_req.matches(&book_version) {
4343
eprintln!(
4444
"Warning: The {} plugin was built against version {} of mdbook, \
4545
but we're being called from version {}",
4646
pre.name(),
47-
mdbook_core::MDBOOK_VERSION,
47+
mdbook_preprocessor::MDBOOK_VERSION,
4848
ctx.mdbook_version
4949
);
5050
}

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
//!
3030
//! ```rust,no_run
3131
//! use mdbook_driver::MDBook;
32-
//! use mdbook_core::config::Config;
32+
//! use mdbook_driver::config::Config;
3333
//!
3434
//! let root_dir = "/path/to/book/root";
3535
//!
@@ -78,4 +78,4 @@
7878
//! [user guide]: https://rust-lang.github.io/mdBook/
7979
//! [`RenderContext`]: mdbook_renderer::RenderContext
8080
//! [relevant chapter]: https://rust-lang.github.io/mdBook/for_developers/backends.html
81-
//! [`Config`]: mdbook_core::config::Config
81+
//! [`Config`]: mdbook_driver::config::Config

0 commit comments

Comments
 (0)