We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c11f10a commit 289ce2aCopy full SHA for 289ce2a
1 file changed
crates/anstyle-hyperlink/src/file.rs
@@ -20,10 +20,6 @@ pub fn path_to_url(path: &std::path::Path) -> Option<String> {
20
/// the computer you've SSH'ed into
21
/// ([reference](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#file-uris-and-the-hostname))
22
pub fn file_to_url(hostname: Option<&str>, path: &std::path::Path) -> Option<String> {
23
- if !path.is_absolute() {
24
- return None;
25
- }
26
-
27
let mut url = "file://".to_owned();
28
if let Some(hostname) = hostname {
29
url.push_str(hostname);
0 commit comments