summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2023-11-03 00:13:40 +0100
committerJustus Winter <justus@sequoia-pgp.org>2023-11-03 10:16:12 +0100
commit967f9189aa65e4c8eca988280a52913b5936e9d8 (patch)
tree3bdd8ad12d7783880d8f241f9963a690e9485c32
parent70600b5dda833b31e33015a818208dd9d3fb50d1 (diff)
openpgp: Remove redundant call.
- This triggers a warning in rustc 1.73, and thus is an error for us.
-rw-r--r--openpgp/src/regex/mod.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/openpgp/src/regex/mod.rs b/openpgp/src/regex/mod.rs
index c2a6b93f..2581f425 100644
--- a/openpgp/src/regex/mod.rs
+++ b/openpgp/src/regex/mod.rs
@@ -1092,7 +1092,6 @@ impl RegexSet {
/// ```
pub fn matches_userid(&self, u: &UserID) -> bool
{
- let u = u.borrow();
if let Ok(u) = std::str::from_utf8(u.value()) {
self.is_match(u)
} else {