Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO committed Sep 16, 2021
1 parent 0908fdd commit 29ffc1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/fs_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn cached_cwd() -> Result<PathBuf, AnyError> {
})
}

pub fn cached_chdir(cwd: &PathBuf) -> Result<(), AnyError> {
pub fn cached_chdir(cwd: &Path) -> Result<(), AnyError> {
std::env::set_current_dir(cwd)?;
CACHED_CWD.with(|cached| cached.take());
Ok(())
Expand All @@ -55,6 +55,7 @@ pub fn resolve_from_cwd(path: &Path) -> Result<PathBuf, AnyError> {
#[cfg(test)]
mod tests {
use super::*;
use std::env::current_dir;

#[test]
fn resolve_from_cwd_child() {
Expand Down

0 comments on commit 29ffc1f

Please sign in to comment.