mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-11-14 00:17:07 +00:00
fix formatting and clippy errors
This commit is contained in:
parent
6a673dd057
commit
eb848678c2
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue