fix(abigen): use correct str Regex (#1566)

This commit is contained in:
Matthias Seitz 2022-08-04 19:03:43 +02:00 committed by GitHub
parent 52ead7c645
commit 43b8bb5251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
//! Filtering support for contracts used in [`Abigen`] //! Filtering support for contracts used in [`Abigen`]
use regex::bytes::Regex; use regex::Regex;
use std::collections::HashSet; use std::collections::HashSet;
/// Used to filter contracts that should be _included_ in the abigen generation. /// Used to filter contracts that should be _included_ in the abigen generation.
@ -138,7 +138,7 @@ macro_rules! impl_filter {
if self.exact.contains(name) { if self.exact.contains(name) {
return true return true
} }
self.patterns.iter().any(|re| re.is_match(name.as_bytes())) self.patterns.iter().any(|re| re.is_match(name))
} }
} }
}; };