Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 0458d3e

Browse files
committed
Implemented #119
1 parent f69c897 commit 0458d3e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/results/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ pub use self::utils::{html_escape, split_indent, Vulnerability};
2020
use criticality::Criticality;
2121
use {print_warning, Config};
2222

23-
use results::report::Generator;
24-
use results::report::{HandlebarsReport, Json};
23+
use results::report::{Generator, HandlebarsReport, Json};
2524

2625
/// Results representation structure.
2726
pub struct Results {
@@ -78,7 +77,7 @@ impl Results {
7877
files."
7978
);
8079
} else if !config.is_quiet() {
81-
println!("Results struct created.");
80+
println!("Results structure created.");
8281
}
8382

8483
#[cfg(feature = "certificate")]

src/results/report/handlebars.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ impl Report {
139139
let path = entry.path();
140140

141141
let prefix = config.dist_folder().join(&self.package);
142-
let stripped = path.strip_prefix(&prefix).unwrap();
142+
let stripped = path.strip_prefix(&prefix)
143+
.expect("could not remove path prefix");
143144

144145
if path.is_dir() {
145146
if stripped != Path::new("original") {

travis-helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ elif [ "$action" = "upload_code_coverage" ]; then
4848

4949
elif [ "$action" = "upload_documentation" ]; then
5050
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "develop" ]]; then
51-
cargo doc &&
51+
cargo rustdoc -- --document-private-items &&
5252
echo "<meta http-equiv=refresh content=0;url=super/index.html>" > target/doc/index.html &&
5353
git clone https://github.com/davisp/ghp-import.git &&
5454
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&

0 commit comments

Comments
 (0)