From 448c331447fbf118f46fb2336b03b978ab7e9fe9 Mon Sep 17 00:00:00 2001 From: Luro02 <24826124+Luro02@users.noreply.github.com> Date: Thu, 23 Jan 2020 17:57:57 +0100 Subject: [PATCH] fix compilation --- src/lib.rs | 3 +-- src/tags/master_playlist/session_data.rs | 21 ++++++--------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 30fe3cc..3d4b2be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ #![forbid(unsafe_code)] -#![feature(option_flattening)] #![warn( - //clippy::pedantic, + clippy::pedantic, // clippy::nursery, clippy::cargo )] diff --git a/src/tags/master_playlist/session_data.rs b/src/tags/master_playlist/session_data.rs index a264158..b03b0e5 100644 --- a/src/tags/master_playlist/session_data.rs +++ b/src/tags/master_playlist/session_data.rs @@ -132,13 +132,10 @@ impl ExtXSessionData { /// # /// let data = ExtXSessionData::new( /// "com.example.movie.title", - /// SessionData::Value("some data".to_string()) + /// SessionData::Value("some data".to_string()), /// ); /// - /// assert_eq!( - /// data.data_id(), - /// &"com.example.movie.title".to_string() - /// ) + /// assert_eq!(data.data_id(), &"com.example.movie.title".to_string()) /// ``` pub const fn data_id(&self) -> &String { &self.data_id } @@ -150,13 +147,10 @@ impl ExtXSessionData { /// # /// let data = ExtXSessionData::new( /// "com.example.movie.title", - /// SessionData::Value("some data".to_string()) + /// SessionData::Value("some data".to_string()), /// ); /// - /// assert_eq!( - /// data.data(), - /// &SessionData::Value("some data".to_string()) - /// ) + /// assert_eq!(data.data(), &SessionData::Value("some data".to_string())) /// ``` pub const fn data(&self) -> &SessionData { &self.data } @@ -170,13 +164,10 @@ impl ExtXSessionData { /// let data = ExtXSessionData::with_language( /// "com.example.movie.title", /// SessionData::Value("some data".to_string()), - /// "english" + /// "english", /// ); /// - /// assert_eq!( - /// data.language(), - /// &Some("english".to_string()) - /// ) + /// assert_eq!(data.language(), &Some("english".to_string())) /// ``` pub const fn language(&self) -> &Option { &self.language }