Skip to content

Commit

Permalink
Fix up benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Matan Kushner committed Apr 12, 2019
1 parent a0e4172 commit 35e219e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions benches/benchmarks.rs
Expand Up @@ -5,7 +5,7 @@ extern crate test;
#[cfg(test)]
mod tests {
use clap::{App, Arg};
use starship::{modules, print};
use starship::modules;
use test::Bencher;

// #[bench]
Expand All @@ -27,7 +27,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);

let segment = modules::handle("char", &args);
print::stringify_segment(segment)
segment.output()
});
}

Expand All @@ -39,7 +39,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);

let segment = modules::handle("dir", &args);
print::stringify_segment(segment)
segment.output()
});
}

Expand All @@ -51,7 +51,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);

let segment = modules::handle("line_break", &args);
print::stringify_segment(segment)
segment.output()
});
}

Expand All @@ -63,7 +63,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);

let segment = modules::handle("nodejs", &args);
print::stringify_segment(segment)
segment.output()
});
}
}

0 comments on commit 35e219e

Please sign in to comment.