diff --git a/src/plugin/cache.rs b/src/plugin/cache.rs index f243411..3f03adb 100644 --- a/src/plugin/cache.rs +++ b/src/plugin/cache.rs @@ -192,7 +192,7 @@ impl TryFrom<&PluginConf> for Cache { } else { Some(Regex::new(&skip_value).map_err(|e| Error::Regex { category: "cache".to_string(), - source: e, + source: Box::new(e), })?) }; diff --git a/src/plugin/mod.rs b/src/plugin/mod.rs index fa4f324..8414574 100644 --- a/src/plugin/mod.rs +++ b/src/plugin/mod.rs @@ -134,7 +134,7 @@ pub enum Error { #[snafu(display("Plugin {category}, regex error {source}"))] Regex { category: String, - source: fancy_regex::Error, + source: Box, }, } type Result = std::result::Result;