diff --git a/src/lib.rs b/src/lib.rs index 9aadbc9..dd07200 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -75,10 +75,11 @@ impl Preprocessor for LastChanged { let size = match ctx.config.get("output.html.recently-updated-size") { Some(val) => match val { toml::Value::Integer(i) => i, - _ => &5 + _ => &5, }, None => &5, - }.to_owned(); + } + .to_owned(); let size = usize::try_from(size).expect("Recently Updated size is not an usize"); let mut vec: Vec<(LiteLink, NaiveDate)> = map @@ -101,7 +102,7 @@ impl Preprocessor for LastChanged { ) }) .collect(); - let text = concat_string!("## Recently Updated:\n", ""); + let text = concat_string!(""); book.for_each_mut(|item: &mut BookItem| { if let Some(Err(_)) = res {