Skip to content

Commit

Permalink
Run code coverage with all features enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Oct 26, 2023
1 parent c8cb645 commit c4df22f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/extract_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ pub fn extract_doc_from_source_str(source: &str) -> Result<Option<Doc>, ExtractD
str.chars().all(char::is_whitespace)
}

let x = string
let comment_lines = string
.lines()
.enumerate()
.filter(|(i, l)| !(*i == 0 && empty_line(l)))
.map(|(_, l)| l);
.map(|(_, l)| l.to_owned());

lines.extend(x.map(ToOwned::to_owned));
lines.extend(comment_lines);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ done

# TODO it seems the `--force-clean` is not working.
cargo clean
cargo tarpaulin --force-clean --ignore-panics --engine llvm --timeout 1200 --out $output_format
cargo tarpaulin --force-clean --ignore-panics --engine llvm --timeout 1200 --out $output_format --all-features

if [ "$output_format" == "html" ]; then
echo
Expand Down

0 comments on commit c4df22f

Please sign in to comment.