1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-28 16:10:05 +08:00

style: fix clippy

This commit is contained in:
2020-08-02 11:44:56 +08:00
parent fe7ab57ac5
commit e79908b4fe
6 changed files with 17 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
extern crate lazy_static;
extern crate term;
use std::io::{ Error, ErrorKind, };
use std::io::{ Error, ErrorKind };
pub mod util_io;
pub mod util_os;
@@ -16,11 +16,8 @@ pub mod util_time;
/// iff!(condition, result_when_true, result_when_false)
#[macro_export] macro_rules! iff {
($c:expr, $t:expr, $f:expr) => {
if $c { $t } else { $f }
};
($c:expr, $t:expr, $f:expr) => ( if $c { $t } else { $f } )
}
#[macro_export] macro_rules! information {
($($arg:tt)+) => ( crate::util_msg::print_info(&format!($($arg)+)); )
}