diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-07 17:28:59 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-09 13:13:58 +0200 |
commit | 4d7ecc72b384a9c30e7024eb2ebfaede9882db06 (patch) | |
tree | d396a3aa655e1a420a6a9569c75d18438aeaee98 | |
parent | a23a14d0471512d360364b69df51161e84c9e0d0 (diff) |
Lint: Remove useless as_ref.
- https://rust-lang.github.io/rust-clippy/master/index.html#useless_asref
-rw-r--r-- | openpgp/src/regex/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp/src/regex/mod.rs b/openpgp/src/regex/mod.rs index 31e3c7e3..1e9e3d7d 100644 --- a/openpgp/src/regex/mod.rs +++ b/openpgp/src/regex/mod.rs @@ -400,7 +400,6 @@ impl Regex { /// [`Regex::disable_sanitizations`]: #method.disable_sanitizations pub fn new(re: &str) -> Result<Self> { - let re = re.as_ref(); let lexer = Lexer::new(re); let hir = match grammar::RegexParser::new().parse(re, lexer) { Ok(hir) => hir, |