Skip to content

Commit

Permalink
fix: windows
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Oct 7, 2024
1 parent c90f6ef commit 9d689e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/host/localhost.rs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ impl HostBridge for Localhost {
fn symlink(&mut self, _src: &Path, _dst: &Path) -> HostResult<()> {
warn!("Cannot create symlink on Windows");

return Err(HostError::from(HostErrorType::NotImplemented));
Err(HostError::from(HostErrorType::NotImplemented))
}

#[cfg(unix)]
Expand Down Expand Up @@ -480,7 +480,7 @@ impl HostBridge for Localhost {
fn chmod(&mut self, _path: &std::path::Path, _pex: UnixPex) -> HostResult<()> {
warn!("Cannot set file mode on Windows");

return Err(HostError::from(HostErrorType::NotImplemented));
Err(HostError::from(HostErrorType::NotImplemented))
}

fn open_file(&mut self, file: &std::path::Path) -> HostResult<Box<dyn Read + Send>> {
Expand Down

0 comments on commit 9d689e0

Please sign in to comment.