Skip to content

Commit de62c68

Browse files
committed
OGG: Fix clippy::trivially_copy_pass_by_ref
1 parent 317fbb6 commit de62c68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ogg/write.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ pub(crate) enum OGGFormat {
2222
}
2323

2424
impl OGGFormat {
25-
#[allow(clippy::trivially_copy_pass_by_ref)]
26-
pub(crate) fn comment_signature(&self) -> Option<&[u8]> {
25+
pub(crate) fn comment_signature(self) -> Option<&'static [u8]> {
2726
match self {
2827
OGGFormat::Opus => Some(OPUSTAGS),
2928
OGGFormat::Vorbis => Some(VORBIS_COMMENT_HEAD),

0 commit comments

Comments
 (0)