Re-export all types from the crate root and remove the playlist sub-module

There's not much else in this crate and having it behind another module
decreases visibility.
This commit is contained in:
Sebastian Dröge 2021-11-18 15:00:01 +02:00
parent 3edf5d1c0f
commit 51fcb70113
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
use m3u8_rs::playlist::Playlist; use m3u8_rs::Playlist;
use std::io::Read; use std::io::Read;
fn main() { fn main() {

View file

@ -1,4 +1,4 @@
use m3u8_rs::playlist::Playlist; use m3u8_rs::Playlist;
use std::io::Read; use std::io::Read;
fn main() { fn main() {

View file

@ -1,4 +1,5 @@
pub mod playlist; mod playlist;
pub use playlist::*;
#[cfg(feature = "parser")] #[cfg(feature = "parser")]
mod parser; mod parser;

View file

@ -1,6 +1,5 @@
#![allow(unused_variables, unused_imports, dead_code)] #![allow(unused_variables, unused_imports, dead_code)]
use m3u8_rs::playlist::*;
use m3u8_rs::*; use m3u8_rs::*;
use nom::AsBytes; use nom::AsBytes;
use std::collections::HashMap; use std::collections::HashMap;