summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Erik Rediger <janerik@fnordig.de>2022-06-27 22:49:18 +0200
committerJan-Erik Rediger <janerik@fnordig.de>2022-06-27 22:49:18 +0200
commit222fcb5262ad94754a3f50c98728d0b585d8ebe9 (patch)
treec8d37b581b08d0fbc4279cf981c154975ce29f27
parentf84a4e46e42c83892bb590503a76603940625c6b (diff)
Reformat
-rw-r--r--src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4772888..65061ba 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,7 +1,7 @@
use std::path::{Path, PathBuf};
use mdbook::book::{Book, BookItem, Chapter};
-use mdbook::errors::{Result, Error};
+use mdbook::errors::{Error, Result};
use mdbook::preprocess::{Preprocessor, PreprocessorContext};
pub struct OpenOn;
@@ -119,7 +119,9 @@ fn open_on(
let (pre, link_text, post) = match parse_footer_text(&open_on_text) {
Some(parsed) => parsed,
- None => Err(Error::msg("can't parse footer text. Missing `[link text]`?"))?
+ None => Err(Error::msg(
+ "can't parse footer text. Missing `[link text]`?",
+ ))?,
};
let link = format!("<a href=\"{}\">{}</a>", url, link_text);