mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 22:22:31 +00:00
Discard changes to src/id3/v2/tag.rs
This commit is contained in:
parent
003848c087
commit
f1e8ab6c2f
1 changed files with 2 additions and 6 deletions
|
@ -533,9 +533,7 @@ impl Accessor for Id3v2Tag {
|
|||
fn set_comment(&mut self, value: String) {
|
||||
let mut value = Some(value);
|
||||
self.frames.retain_mut(|frame| {
|
||||
let Some(CommentFrame { content, .. }) =
|
||||
filter_comment_frame_by_description_mut(frame, &EMPTY_CONTENT_DESCRIPTOR)
|
||||
else {
|
||||
let Some(CommentFrame { content, .. }) = filter_comment_frame_by_description_mut(frame, &EMPTY_CONTENT_DESCRIPTOR) else {
|
||||
return true;
|
||||
};
|
||||
if let Some(value) = value.take() {
|
||||
|
@ -761,9 +759,7 @@ impl SplitTag for Id3v2Tag {
|
|||
) => {
|
||||
if owner == MUSICBRAINZ_UFID_OWNER {
|
||||
let mut identifier = Cursor::new(identifier);
|
||||
let Ok(recording_id) =
|
||||
decode_text(&mut identifier, TextEncoding::Latin1, false)
|
||||
else {
|
||||
let Ok(recording_id) = decode_text(&mut identifier, TextEncoding::Latin1, false) else {
|
||||
return true; // Keep frame
|
||||
};
|
||||
tag.items.push(TagItem::new(
|
||||
|
|
Loading…
Reference in a new issue