mirror of
https://github.com/v0l/m3u8-rs.git
synced 2025-06-20 18:39:50 +00:00
Apply cargo fmt
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
extern crate nom;
|
||||
extern crate m3u8_rs;
|
||||
extern crate nom;
|
||||
|
||||
use m3u8_rs::playlist::{Playlist};
|
||||
use m3u8_rs::playlist::Playlist;
|
||||
use std::io::Read;
|
||||
|
||||
fn main() {
|
||||
@ -13,7 +13,7 @@ fn main() {
|
||||
|
||||
let playlist = match parsed {
|
||||
Result::Ok((i, playlist)) => playlist,
|
||||
Result::Err(e) => panic!("Parsing error: \n{}", e),
|
||||
Result::Err(e) => panic!("Parsing error: \n{}", e),
|
||||
};
|
||||
|
||||
match playlist {
|
||||
@ -32,6 +32,6 @@ fn main_alt() {
|
||||
match parsed {
|
||||
Result::Ok((i, Playlist::MasterPlaylist(pl))) => println!("Master playlist:\n{:?}", pl),
|
||||
Result::Ok((i, Playlist::MediaPlaylist(pl))) => println!("Media playlist:\n{:?}", pl),
|
||||
Result::Err(e) => panic!("Parsing error: \n{}", e),
|
||||
Result::Err(e) => panic!("Parsing error: \n{}", e),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user