Change style of printed settings

master
Trivernis 5 years ago
parent 5f201be1d8
commit d767128309

@ -1,6 +1,6 @@
[package]
name = "benchlib-rs"
version = "0.2.1"
version = "0.2.2"
authors = ["Trivernis <trivernis@gmail.com>"]
edition = "2018"
license-file = "LICENSE"

@ -202,7 +202,7 @@ impl Bencher {
/// Prints the settings of the Bencher
pub fn print_settings(&mut self) -> &mut Self {
println!("{}{}Benchmarking Settings{}", color::Fg(color::Green), style::Framed, style::Reset);
println!("\n{}{}Benchmarking Settings{}", color::Fg(color::Green), style::Underline, style::Reset);
println!("Number of iterations:\t {}", if self.iterations > 0 {self.iterations.to_string() } else { "auto".to_string() });
if self.iterations == 0 {
println!("Maximum number of iterations: {}", self.max_auto_iterations)

Loading…
Cancel
Save