mirror of
https://github.com/nushell/nushell
synced 2025-01-13 05:38:57 +00:00
Prevent Clippy within tests on Ubuntu
This commit is contained in:
parent
de3e4ebf12
commit
48bad903c4
1 changed files with 2 additions and 3 deletions
|
@ -154,8 +154,7 @@ pub fn get_full_path_name_w(path_str: &str) -> Option<String> {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
#[cfg(test)] // test only for windows
|
||||
#[cfg(all(windows, test))] // test only for windows
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
|
@ -186,7 +185,7 @@ mod tests {
|
|||
#[test]
|
||||
fn test_os_windows_maintainer_set_pwd() {
|
||||
let mut stack = Stack::new();
|
||||
let path_str = r"c:\uesrs\nushell";
|
||||
let path_str = r"c:\users\nushell";
|
||||
let path = Path::new(path_str);
|
||||
set_pwd(&mut stack, path);
|
||||
let engine_state = EngineState::new();
|
||||
|
|
Loading…
Reference in a new issue