mirror of
https://github.com/nushell/nushell.git
synced 2025-08-12 21:57:50 +02:00
Cargo fmt
This commit is contained in:
@ -91,7 +91,13 @@ pub mod _impl {
|
|||||||
// Expand with no PWD set for the drive
|
// Expand with no PWD set for the drive
|
||||||
let expanded = expand_pwd(Path::new("D:test"));
|
let expanded = expand_pwd(Path::new("D:test"));
|
||||||
if let Some(sys_abs) = get_full_path_name_w("D:") {
|
if let Some(sys_abs) = get_full_path_name_w("D:") {
|
||||||
assert_eq!(expanded, Some(PathBuf::from(format!("{}test", Drive2PWD::ensure_trailing_separator(&sys_abs)))));
|
assert_eq!(
|
||||||
|
expanded,
|
||||||
|
Some(PathBuf::from(format!(
|
||||||
|
"{}test",
|
||||||
|
Drive2PWD::ensure_trailing_separator(&sys_abs)
|
||||||
|
)))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
assert_eq!(expanded, Some(PathBuf::from(r"D:\test")));
|
assert_eq!(expanded, Some(PathBuf::from(r"D:\test")));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user