summaryrefslogtreecommitdiffstats
path: root/src/commands/find_pkg.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 09:46:57 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-15 23:21:39 +0100
commitc4f8c31539a0f33b66c1135e05ae8c473f7c5534 (patch)
tree7227bf0ac1bbfb30f5bb03fd8c5575f57a37d0d4 /src/commands/find_pkg.rs
parentca20c10fd71c03285fbf310782c6615af8d2a3bf (diff)
Allow identity operation here to be more expressive
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/find_pkg.rs')
-rw-r--r--src/commands/find_pkg.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands/find_pkg.rs b/src/commands/find_pkg.rs
index 5f9c28f..867527f 100644
--- a/src/commands/find_pkg.rs
+++ b/src/commands/find_pkg.rs
@@ -26,6 +26,7 @@ pub async fn find_pkg(matches: &ArgMatches, config: &Configuration, repo: Reposi
.value_of("package_name_regex")
.map(regex::RegexBuilder::new)
.map(|mut builder| {
+ #[allow(clippy::identity_op)]
builder.size_limit(1 * 1024 * 1024); // max size for the regex is 1MB. Should be enough for everyone
builder.build()
.with_context(|| anyhow!("Failed to build regex from '{}'", matches.value_of("package_name_regex").unwrap()))