Skip to content

Commit 4f9971a

Browse files
committed
Clippy
1 parent 2f270e8 commit 4f9971a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lofty/src/flac/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ where
135135

136136
let mut comment_blocks = Cursor::new(Vec::new());
137137

138-
create_comment_block(&mut comment_blocks, &*tag.vendor, &mut tag.items)?;
138+
create_comment_block(&mut comment_blocks, &tag.vendor, &mut tag.items)?;
139139

140140
let mut comment_blocks = comment_blocks.into_inner();
141141

lofty/src/id3/v1/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub(super) fn encode(tag: &Id3v1TagRef<'_>) -> std::io::Result<Vec<u8>> {
6767

6868
let mut writer = Vec::with_capacity(128);
6969

70-
writer.write_all(&[b'T', b'A', b'G'])?;
70+
writer.write_all(b"TAG")?;
7171

7272
let title = resize_string(tag.title, 30)?;
7373
writer.write_all(&title)?;

lofty/src/id3/v2/write/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub(super) fn create_tag<'a, I: Iterator<Item = FrameRef<'a>> + 'a>(
202202
fn create_tag_header(flags: Id3v2TagFlags, is_id3v23: bool) -> Result<(Cursor<Vec<u8>>, u32)> {
203203
let mut header = Cursor::new(Vec::new());
204204

205-
header.write_all(&[b'I', b'D', b'3'])?;
205+
header.write_all(b"ID3")?;
206206

207207
if is_id3v23 {
208208
// Version 3, rev 0

0 commit comments

Comments
 (0)