Skip to content

Commit 68ef9cc

Browse files
committed
chore: clippy
1 parent 6dcf17b commit 68ef9cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iroh-base/src/relay_url.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ impl RelayUrl {
5050
let mut url = self.0.deref().clone();
5151
if let Some(domain) = url.domain() {
5252
if let Some(stripped) = domain.strip_suffix('.') {
53-
url.set_host(Some(&stripped.to_string())).ok();
53+
let stripped = stripped.to_string();
54+
url.set_host(Some(&stripped)).ok();
5455
}
5556
}
5657
url

0 commit comments

Comments
 (0)