diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index f224abd..881bc40 100644 --- a/src/main.rs +++ b/src/main.rs @@ -223,6 +223,10 @@ fn ssh_url_parse(s: &str) -> Result<url::Url, url::ParseError> { }) } +fn host_with_port(url: &url::Url) -> &str { + &url[url::Position::BeforeHost..url::Position::AfterPort] +} + use std::sync::OnceLock; static SPECIAL_RENDER: OnceLock<SpecialRender> = OnceLock::new(); |