1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-11-22 15:21:01 +00:00

fix compilation

This commit is contained in:
Luro02 2020-01-23 17:57:57 +01:00
parent aa9dbc7b71
commit 448c331447
No known key found for this signature in database
GPG key ID: B66FD4F74501A9CF
2 changed files with 7 additions and 17 deletions

View file

@ -1,7 +1,6 @@
#![forbid(unsafe_code)]
#![feature(option_flattening)]
#![warn(
//clippy::pedantic,
clippy::pedantic, //
clippy::nursery,
clippy::cargo
)]

View file

@ -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<String> { &self.language }