Change style of printed settings

master
Trivernis 5 years ago
parent 5f201be1d8
commit d767128309

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

@ -202,7 +202,7 @@ impl Bencher {
/// Prints the settings of the Bencher /// Prints the settings of the Bencher
pub fn print_settings(&mut self) -> &mut Self { 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() }); println!("Number of iterations:\t {}", if self.iterations > 0 {self.iterations.to_string() } else { "auto".to_string() });
if self.iterations == 0 { if self.iterations == 0 {
println!("Maximum number of iterations: {}", self.max_auto_iterations) println!("Maximum number of iterations: {}", self.max_auto_iterations)

Loading…
Cancel
Save