mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
remove space prefix and suffix in path
This commit is contained in:
parent
df5fd4c964
commit
efd3b5cf0e
1 changed files with 3 additions and 3 deletions
|
|
@ -42,15 +42,15 @@ impl From<&Path> for Url {
|
|||
}
|
||||
|
||||
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<&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<Url> for Url {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue