summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-12-22 11:32:06 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-12-22 11:32:06 +0000
commitef6b2cdbc16af833e64831389abd96f1423a9d06 (patch)
tree6d78875bca501d6b73af5f23ddcfa9b85988c9f3
parentd4eab4fc8d5c0cbdd0f1060638697f1198c9c472 (diff)
downloadparsebyregex-ef6b2cdbc16af833e64831389abd96f1423a9d06.tar.bz2
Add clippy permission
-rw-r--r--parsebyregex-derive/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/parsebyregex-derive/src/lib.rs b/parsebyregex-derive/src/lib.rs
index 80e3e23..223f7ee 100644
--- a/parsebyregex-derive/src/lib.rs
+++ b/parsebyregex-derive/src/lib.rs
@@ -28,6 +28,7 @@ fn impl_pbr_macro(ast: &syn::DeriveInput) -> TokenStream {
use parsebyregex::lazy_static;
use parsebyregex::Regex;
lazy_static! {
+ #[allow(clippy::trivial_regex)]
static ref PARSER: Regex = Regex::new(#regex).expect("Unable to parse regular expression");
}
if let Some(captures) = PARSER.captures(input.as_ref()) {