mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-11-25 10:10:58 +00:00
Fix some minor clippy warnings
This commit is contained in:
parent
b0a9fe2625
commit
015b05f26c
2 changed files with 4 additions and 5 deletions
|
@ -989,9 +989,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn incomplete_manifest() {
|
||||
assert_eq!(
|
||||
is_master_playlist("#EXTM3U\n#EXT-X-VERSION:5\n#EXT-X-TARGETDU".as_bytes()),
|
||||
false
|
||||
);
|
||||
assert!(!is_master_playlist(
|
||||
"#EXTM3U\n#EXT-X-VERSION:5\n#EXT-X-TARGETDU".as_bytes()
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -412,7 +412,7 @@ impl TryFrom<QuotedOrUnquoted> for ClosedCaptionGroupId {
|
|||
fn try_from(s: QuotedOrUnquoted) -> Result<ClosedCaptionGroupId, String> {
|
||||
match s {
|
||||
QuotedOrUnquoted::Unquoted(s) if s == "NONE" => Ok(ClosedCaptionGroupId::None),
|
||||
QuotedOrUnquoted::Unquoted(s) => Ok(ClosedCaptionGroupId::Other(String::from(s))),
|
||||
QuotedOrUnquoted::Unquoted(s) => Ok(ClosedCaptionGroupId::Other(s)),
|
||||
QuotedOrUnquoted::Quoted(s) => Ok(ClosedCaptionGroupId::GroupId(s)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue