Skip to content

Commit 74f38d8

Browse files
tottotoseanmonstar
authored andcommitted
refactor(uri): replace single string with character
1 parent 895ead6 commit 74f38d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uri/authority.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl Authority {
238238
pub fn port(&self) -> Option<Port<&str>> {
239239
let bytes = self.as_str();
240240
bytes
241-
.rfind(":")
241+
.rfind(':')
242242
.and_then(|i| Port::from_str(&bytes[i + 1..]).ok())
243243
}
244244

0 commit comments

Comments
 (0)