From d76712830919d4e559324d9f26c55999d65dc970 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Fri, 3 Apr 2020 11:40:18 +0200 Subject: [PATCH] Change style of printed settings --- Cargo.toml | 2 +- src/benching.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5cc6f44..e4c2ab1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "benchlib-rs" -version = "0.2.1" +version = "0.2.2" authors = ["Trivernis "] edition = "2018" license-file = "LICENSE" diff --git a/src/benching.rs b/src/benching.rs index ee252b3..bcdc219 100644 --- a/src/benching.rs +++ b/src/benching.rs @@ -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)