From 967f9189aa65e4c8eca988280a52913b5936e9d8 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 3 Nov 2023 00:13:40 +0100 Subject: openpgp: Remove redundant call. - This triggers a warning in rustc 1.73, and thus is an error for us. --- openpgp/src/regex/mod.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'openpgp') 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 { -- cgit v1.2.3