From 51fcb70113dba9cd41303ec16ffcaf7a08b6fb82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 18 Nov 2021 15:00:01 +0200 Subject: [PATCH] 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. --- examples/simple.rs | 2 +- examples/with_nom_result.rs | 2 +- src/lib.rs | 3 ++- tests/lib.rs | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/simple.rs b/examples/simple.rs index 7d53fc2..d4d06d1 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -1,4 +1,4 @@ -use m3u8_rs::playlist::Playlist; +use m3u8_rs::Playlist; use std::io::Read; fn main() { diff --git a/examples/with_nom_result.rs b/examples/with_nom_result.rs index ab266ee..cb60a61 100644 --- a/examples/with_nom_result.rs +++ b/examples/with_nom_result.rs @@ -1,4 +1,4 @@ -use m3u8_rs::playlist::Playlist; +use m3u8_rs::Playlist; use std::io::Read; fn main() { diff --git a/src/lib.rs b/src/lib.rs index 609d710..f48840d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ -pub mod playlist; +mod playlist; +pub use playlist::*; #[cfg(feature = "parser")] mod parser; diff --git a/tests/lib.rs b/tests/lib.rs index 3f244e1..3bfb798 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -1,6 +1,5 @@ #![allow(unused_variables, unused_imports, dead_code)] -use m3u8_rs::playlist::*; use m3u8_rs::*; use nom::AsBytes; use std::collections::HashMap;