From 64b42cd2f3f1da1d6a99dcdf90e6f7728ddca968 Mon Sep 17 00:00:00 2001 From: Lukas Lueg Date: Fri, 13 Jan 2017 08:15:06 +0100 Subject: Use the log-crate instead of printing to stdout --- src/input.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 3335e0b9..09349f04 100644 --- a/src/input.rs +++ b/src/input.rs @@ -151,7 +151,7 @@ impl Action { Clipboard::new() .and_then(|mut clipboard| clipboard.store_primary(buf)) .unwrap_or_else(|err| { - err_println!("Error storing selection to clipboard. {}", Red(err)); + warn!("Error storing selection to clipboard. {}", Red(err)); }); } } @@ -170,7 +170,7 @@ impl Action { } }) .unwrap_or_else(|err| { - err_println!("Error loading data from clipboard. {}", Red(err)); + warn!("Error loading data from clipboard. {}", Red(err)); }); }, } @@ -273,7 +273,7 @@ impl<'a, N: Notify + 'a> Processor<'a, N> { Clipboard::new() .and_then(|mut clipboard| clipboard.store_selection(buf)) .unwrap_or_else(|err| { - err_println!("Error storing selection to clipboard. {}", Red(err)); + warn!("Error storing selection to clipboard. {}", Red(err)); }); } } -- cgit