Skip to content

Commit

Permalink
test: fix clippy result large err
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Nov 30, 2024
1 parent 111ccb6 commit fbe27fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugin/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
})?)
};

Expand Down
2 changes: 1 addition & 1 deletion src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub enum Error {
#[snafu(display("Plugin {category}, regex error {source}"))]
Regex {
category: String,
source: fancy_regex::Error,
source: Box<fancy_regex::Error>,
},
}
type Result<T, E = Error> = std::result::Result<T, E>;
Expand Down

0 comments on commit fbe27fe

Please sign in to comment.