1
0
mirror of https://github.com/jht5945/rust_util.git synced 2025-12-27 15:40:03 +08:00

add new_box_ioerror

This commit is contained in:
2019-08-03 17:11:18 +08:00
parent 1fe9483cee
commit a5f07d2b14

View File

@@ -126,6 +126,10 @@ pub fn new_box_error(m: &str) -> Box<dyn std::error::Error> {
Box::new(Error::new(ErrorKind::Other, m))
}
pub fn new_box_ioerror(m: &str) -> Box<dyn std::error::Error> {
Box::new(Error::new(ErrorKind::Other, m))
}
pub enum MessageType { INFO, OK, WARN, ERROR, }
pub fn print_color(color: Option<term::color::Color>, is_bold: bool, m: &str) {