mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:45:08 +02:00
Clippy fix for Rust 1.63 (#6299)
Take more sensitive lints into account Somewhat ugly in some cases is the replacement of `.get(0)` with `.first()`
This commit is contained in:
committed by
GitHub
parent
08c98967e0
commit
c2f4969d4f
@ -992,7 +992,7 @@ mod test {
|
||||
.and_then(|p| match p.components().next().unwrap() {
|
||||
Component::Prefix(prefix_component) => {
|
||||
let path = Path::new(prefix_component.as_os_str()).join("*");
|
||||
Some(path.to_path_buf())
|
||||
Some(path)
|
||||
}
|
||||
_ => panic!("no prefix in this path"),
|
||||
})
|
||||
|
Reference in New Issue
Block a user