summaryrefslogtreecommitdiffstats
path: root/benches
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.me>2019-04-12 19:13:14 -0400
committerMatan Kushner <hello@matchai.me>2019-04-12 19:13:14 -0400
commit35e219e1f63ae55eee860fbc1770bbc037d45a64 (patch)
treed9539a16b8b0df4d7846d2ae8a0c8f3477a42cf0 /benches
parenta0e4172602f0b6a666bca7d8568a4f9a181d5438 (diff)
Fix up benchmarks
Diffstat (limited to 'benches')
-rw-r--r--benches/benchmarks.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs
index 5da21f04c..4bd3d31b4 100644
--- a/benches/benchmarks.rs
+++ b/benches/benchmarks.rs
@@ -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]
@@ -27,7 +27,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);
let segment = modules::handle("char", &args);
- print::stringify_segment(segment)
+ segment.output()
});
}
@@ -39,7 +39,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);
let segment = modules::handle("dir", &args);
- print::stringify_segment(segment)
+ segment.output()
});
}
@@ -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()
});
}
@@ -63,7 +63,7 @@ mod tests {
.get_matches_from(vec!["starship", "0"]);
let segment = modules::handle("nodejs", &args);
- print::stringify_segment(segment)
+ segment.output()
});
}
}