fix clippy

This commit is contained in:
Loïc Riegel 2025-03-30 18:25:13 +02:00
parent ed73899ad4
commit 69a73dfe1b

View File

@ -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()),
} }