mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 13:15:58 +02:00
Apply nightly clippy fixes (#11508)
# Description Clippy fixes # User-Facing Changes N/A
This commit is contained in:
@ -321,9 +321,7 @@ impl Iterator for ParseStreamer {
|
||||
}
|
||||
}
|
||||
|
||||
let Some(v) = self.stream.next() else {
|
||||
return None;
|
||||
};
|
||||
let v = self.stream.next()?;
|
||||
|
||||
let Ok(s) = v.as_string() else {
|
||||
return Some(Value::error(
|
||||
|
@ -27,9 +27,6 @@ impl CmdArgument for Arguments {
|
||||
#[derive(Clone)]
|
||||
pub struct SubCommand;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct IndexOfOptionalBounds(i32, i32);
|
||||
|
||||
impl Command for SubCommand {
|
||||
fn name(&self) -> &str {
|
||||
"str index-of"
|
||||
|
Reference in New Issue
Block a user