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