mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 17:38:14 +02:00
apply clippy fixes
This commit is contained in:
parent
f9b6b245b7
commit
0f96000597
@ -692,13 +692,13 @@ fn merge_record(record: &Record, head: Span, span: Span) -> Value {
|
|||||||
|
|
||||||
let offset: FixedOffset = match record.get("timezone") {
|
let offset: FixedOffset = match record.get("timezone") {
|
||||||
Some(timezone) => {
|
Some(timezone) => {
|
||||||
let offset = match parse_timezone_from_record(timezone, &head, &span) {
|
|
||||||
|
match parse_timezone_from_record(timezone, &head, &span) {
|
||||||
Ok(value) => value,
|
Ok(value) => value,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
offset
|
|
||||||
}
|
}
|
||||||
None => now.offset().to_owned(),
|
None => now.offset().to_owned(),
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user