Simplify unix path handling a bit

This commit is contained in:
Steven Fackler
2018-12-28 14:33:27 -05:00
parent 634d24a951
commit 23552b44a4

View File

@@ -67,10 +67,7 @@ impl Builder {
#[cfg(unix)]
{
if host.starts_with('/') {
Arc::make_mut(&mut self.0)
.host
.push(Host::Unix(PathBuf::from(host)));
return self;
return self.host_path(host);
}
}