Skip to content

Commit

Permalink
chore: cr.
Browse files Browse the repository at this point in the history
  • Loading branch information
QuenKar committed Sep 15, 2023
1 parent 94e8dc4 commit e45a0f7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/datatypes/src/types/duration_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ macro_rules! impl_data_type_for_duration {
fn cast_value_ref(value: ValueRef) -> crate::Result<Option<Self::Wrapper>> {
match value {
ValueRef::Null => Ok(None),
ValueRef::Int64(v) =>{
Ok(Some([<Duration $unit>]::from(v)))
}
ValueRef::Duration(t) => match t.unit() {
TimeUnit::$unit => Ok(Some([<Duration $unit>](t))),
other => error::CastTypeSnafu {
Expand Down

0 comments on commit e45a0f7

Please sign in to comment.