Skip to content

Commit

Permalink
format document properly
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz committed Jan 29, 2025
1 parent 4d581bf commit 1aeb23c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ pub fn run(
let summary_src = std::fs::read_to_string(&mdbook_summary_path)?;

// Filter out any slides given in the `skip_slides` toml array entry
let summary_src = match book_skip_slides {
let summary_src = match book_skip_slides {
None => summary_src,
Some(skip_list) => summary_src
.lines()
// We can unwrap because we already matched on the `skip_list` being a toml array
.filter(|haystack| {
.filter(|haystack| {
let skip_list = skip_list.as_array().unwrap();
skip_list.iter().all(|needle| {
// toml string arrays give you the opening and closing quotes - we need to trim them
Expand Down

0 comments on commit 1aeb23c

Please sign in to comment.