diff --git a/crates/nu-cli/src/env/directory_specific_environment.rs b/crates/nu-cli/src/env/directory_specific_environment.rs index ca701d76d0..e69852f610 100644 --- a/crates/nu-cli/src/env/directory_specific_environment.rs +++ b/crates/nu-cli/src/env/directory_specific_environment.rs @@ -75,7 +75,10 @@ impl DirectorySpecificEnvironment { k.clone(), v.to_str() .ok_or_else(|| { - Error::new(ErrorKind::Other, format!("{:?} is not valid unicode", v)) + Error::new( + ErrorKind::Other, + format!("{:?} is not valid unicode", v), + ) })? .to_string(), );