Skip to content

Commit e9cfd77

Browse files
committed
ID3v2: Document errors for UniqueFileIdentifierFrame::decode_bytes
1 parent 11a6028 commit e9cfd77

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/id3/v2/items/identifier.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct UniqueFileIdentifierFrame {
1414
}
1515

1616
impl UniqueFileIdentifierFrame {
17-
/// Encode the frame contents as bytes.
17+
/// Encode the frame contents as bytes
1818
pub fn as_bytes(&self) -> Vec<u8> {
1919
let Self { owner, identifier } = self;
2020

@@ -25,7 +25,11 @@ impl UniqueFileIdentifierFrame {
2525
content
2626
}
2727

28-
/// Decode the frame contents from bytes.
28+
/// Decode the frame contents from bytes
29+
///
30+
/// # Errors
31+
///
32+
/// Owner is missing or improperly encoded
2933
pub fn decode_bytes(input: &mut &[u8]) -> Result<Option<Self>> {
3034
if input.is_empty() {
3135
return Ok(None);

0 commit comments

Comments
 (0)