Skip to content

Commit b12aa6e

Browse files
committed
fix: Make lint happy
1 parent a0d0fa7 commit b12aa6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl FaupCompat {
240240

241241
fn get_credential(&self) -> Option<String> {
242242
let url = self.url.as_ref();
243-
Some(url.and_then(|u| u.credentials())?)
243+
url.and_then(|u| u.credentials())
244244
}
245245

246246
fn get_domain(&self) -> Option<&str> {
@@ -280,7 +280,7 @@ impl FaupCompat {
280280
}
281281

282282
fn get_domain_without_tld(&self) -> Option<&str> {
283-
let domain = self.url.as_ref()?.domain.as_deref().clone();
283+
let domain = self.url.as_ref()?.domain.as_deref();
284284
let tld = self.url.as_ref()?.suffix.as_deref();
285285
if domain.is_some() && tld.is_some() {
286286
Some(&domain?[0..domain?.chars().count() - tld?.chars().count() - 1])

0 commit comments

Comments
 (0)