mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 06:39:33 +02:00
clippy
This commit is contained in:
parent
5fffbdef2a
commit
3256352742
@ -165,7 +165,7 @@ fn relative_to(path: &Path, span: Span, args: &Arguments) -> Value {
|
||||
let mut path = PathBuf::new();
|
||||
differing_parent.iter().for_each(|_| path.push(".."));
|
||||
|
||||
path.push(&differing_child);
|
||||
path.push(differing_child);
|
||||
|
||||
Value::string(path.to_string_lossy(), span)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user