diff --git a/shared/src/url.rs b/shared/src/url.rs index 10e45db3..94fd227a 100644 --- a/shared/src/url.rs +++ b/shared/src/url.rs @@ -42,15 +42,15 @@ impl From<&Path> for Url { } impl From for Url { - fn from(path: String) -> Self { Self::from(PathBuf::from(path)) } + fn from(path: String) -> Self { Self::from(PathBuf::from(path.trim())) } } impl From<&String> for Url { - fn from(path: &String) -> Self { Self::from(PathBuf::from(path)) } + fn from(path: &String) -> Self { Self::from(PathBuf::from(path.trim())) } } impl From<&str> for Url { - fn from(path: &str) -> Self { Self::from(PathBuf::from(path)) } + fn from(path: &str) -> Self { Self::from(PathBuf::from(path.trim())) } } impl AsRef for Url {