From 5500166f7409a45cf909b26b8221970e6de11a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 17 Nov 2021 19:32:24 +0200 Subject: [PATCH] Fix confusing #[path] usage and re-exports in lib.rs This has effectively the same behaviour now with fewer lines, less confusion and fewer compiler warnings about unused code. --- src/lib.rs | 2 -- src/parser.rs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 8bad94a..609d710 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,5 @@ -#[path = "playlist.rs"] pub mod playlist; -#[path = "parser.rs"] #[cfg(feature = "parser")] mod parser; diff --git a/src/parser.rs b/src/parser.rs index 562b129..3439c4e 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -74,8 +74,6 @@ //! //! ``` -pub mod playlist; - use nom::branch::alt; use nom::bytes::complete::{is_a, is_not, tag, take, take_until, take_while1}; use nom::character::complete::{