Skip to content

Commit

Permalink
style: cargo fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoli committed Jun 2, 2024
1 parent 0729b6e commit 3c16e29
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ pub fn type_option_data_from_pb<T: Into<Bytes>>(
FieldType::Summary => {
SummarizationTypeOptionPB::try_from(bytes).map(|pb| SummarizationTypeOption::from(pb).into())
},
FieldType::Time => {
TimeTypeOptionPB::try_from(bytes).map(|pb| TimeTypeOption::from(pb).into())
},
FieldType::Time => TimeTypeOptionPB::try_from(bytes).map(|pb| TimeTypeOption::from(pb).into()),
}
}

Expand Down Expand Up @@ -258,9 +256,7 @@ pub fn type_option_to_pb(type_option: TypeOptionData, field_type: &FieldType) ->
},
FieldType::Time => {
let time_type_option: TimeTypeOption = type_option.into();
TimeTypeOptionPB::from(time_type_option)
.try_into()
.unwrap()
TimeTypeOptionPB::from(time_type_option).try_into().unwrap()
},
}
}
Expand Down

0 comments on commit 3c16e29

Please sign in to comment.