Add libimagutil::warn_result::*

This commit is contained in:
Matthias Beyer 2016-08-28 14:23:32 +02:00
parent 82f08c6021
commit 0b89cd9ff9
2 changed files with 10 additions and 0 deletions

View file

@ -24,3 +24,4 @@ pub mod ismatch;
pub mod iter; pub mod iter;
pub mod key_value_split; pub mod key_value_split;
pub mod variants; pub mod variants;
pub mod warn_result;

View file

@ -0,0 +1,9 @@
generate_result_logging_extension!(
WarnResult,
map_warn,
map_warn_str,
map_warn_err,
map_warn_err_str,
|s| { warn!("{}", s); }
);