mirror of
https://github.com/nushell/nushell.git
synced 2025-05-31 23:26:11 +02:00
fix clippy
This commit is contained in:
parent
ed73899ad4
commit
69a73dfe1b
@ -698,17 +698,15 @@ fn parse_timezone_from_record(
|
||||
};
|
||||
Ok(offset)
|
||||
}
|
||||
other => {
|
||||
Err(Value::error(
|
||||
ShellError::OnlySupportsThisInputType {
|
||||
exp_input_type: "string".to_string(),
|
||||
wrong_type: other.get_type().to_string(),
|
||||
dst_span: *head,
|
||||
src_span: other.span(),
|
||||
},
|
||||
*span,
|
||||
))
|
||||
}
|
||||
other => Err(Value::error(
|
||||
ShellError::OnlySupportsThisInputType {
|
||||
exp_input_type: "string".to_string(),
|
||||
wrong_type: other.get_type().to_string(),
|
||||
dst_span: *head,
|
||||
src_span: other.span(),
|
||||
},
|
||||
*span,
|
||||
)),
|
||||
},
|
||||
None => Ok(FixedOffset::east_opt(0).unwrap()),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user