fix formatting and clippy errors

This commit is contained in:
Frieder Hannenheim 2023-07-02 15:40:06 +02:00 committed by Alex
parent 6a673dd057
commit eb848678c2
2 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,10 @@ impl KeyValueFrame {
values.push((key.content, value.content));
}
Ok(Some(Self { encoding, key_value_pairs: values }))
Ok(Some(Self {
encoding,
key_value_pairs: values,
}))
}
/// Convert a [`KeyValueFrame`] to a byte vec

View file

@ -788,11 +788,8 @@ impl SplitTag for Id3v2Tag {
FrameValue::Popularimeter(popularimeter) => {
ItemValue::Binary(popularimeter.as_bytes())
},
FrameValue::KeyValueFrame(_) => {
return true; // Keep frame
},
FrameValue::Binary(binary) => ItemValue::Binary(std::mem::take(binary)),
FrameValue::UniqueFileIdentifier(_) => {
FrameValue::KeyValueFrame(_) | FrameValue::UniqueFileIdentifier(_) => {
return true; // Keep unsupported frame
},
};