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:
parent
aa9dbc7b71
commit
448c331447
2 changed files with 7 additions and 17 deletions
|
@ -1,7 +1,6 @@
|
|||
#![forbid(unsafe_code)]
|
||||
#![feature(option_flattening)]
|
||||
#![warn(
|
||||
//clippy::pedantic,
|
||||
clippy::pedantic, //
|
||||
clippy::nursery,
|
||||
clippy::cargo
|
||||
)]
|
||||
|
|
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Reference in a new issue