Use #[cfg] instead of if cfg!

This commit is contained in:
Roey Darwish Dror
2018-06-27 23:04:39 +03:00
parent 33a2b5d84c
commit c667e224a6
3 changed files with 27 additions and 14 deletions

View File

@@ -38,6 +38,7 @@ impl Terminal {
}
}
#[allow(dead_code)]
pub fn print_warning<P: AsRef<str>>(&mut self, message: P) {
let message = message.as_ref();