Skip to content

Commit

Permalink
Fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
fmassot committed Dec 27, 2023
1 parent 3109574 commit a28c98a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ impl From<FileBackedIndexV0_6> for FileBackedIndex {
.filter(|field_mapping| {
field_mapping.name == "trace_id" || field_mapping.name == "span_id"
})
.for_each(|field_mapping| match &mut field_mapping.mapping_type {
FieldMappingType::Bytes(bytes_options, _) => {
.for_each(|field_mapping| {
if let FieldMappingType::Bytes(bytes_options, _) =
&mut field_mapping.mapping_type
{
bytes_options.input_format = BinaryFormat::Hex;
bytes_options.output_format = BinaryFormat::Hex;
}
_ => {}
});
}
// Override split index_id to support old SplitMetadata format.
Expand Down

0 comments on commit a28c98a

Please sign in to comment.