Merge pull request #672 from matthiasbeyer/libimagutil/warn-result

Add libimagutil::warn_result::*
This commit is contained in:
Matthias Beyer 2016-08-28 16:08:06 +02:00 committed by GitHub
commit adb879813e
2 changed files with 10 additions and 0 deletions

View file

@ -24,3 +24,4 @@ pub mod ismatch;
pub mod iter;
pub mod key_value_split;
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); }
);