Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
bytedream committed Feb 23, 2024
1 parent 020eb9a commit 88a001f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
24 changes: 6 additions & 18 deletions src/media/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,9 @@ impl Stream {
self.executor.clone(),
raw_streams
.adaptive_hls
.as_ref()
.map_or(
Err(Error::Input {
.as_ref().ok_or(Error::Input {
message: "no stream available".to_string(),
}),
Ok,
)?
})?
.url
.clone(),
)
Expand All @@ -62,13 +58,9 @@ impl Stream {
self.executor.clone(),
raw_streams
.adaptive_hls
.as_ref()
.map_or(
Err(Error::Input {
.as_ref().ok_or(Error::Input {
message: "no stream available".to_string(),
}),
Ok,
)?
})?
.url
.clone(),
)
Expand All @@ -78,13 +70,9 @@ impl Stream {
self.executor.clone(),
raw_streams
.adaptive_hls
.as_ref()
.map_or(
Err(Error::Input {
.as_ref().ok_or(Error::Input {
message: "no stream available".to_string(),
}),
Ok,
)?
})?
.url
.clone(),
)
Expand Down
2 changes: 1 addition & 1 deletion src/rating/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ where
match flags.len() {
0 => Ok(false),
1 => {
if flags.get(0).unwrap() == "spoiler" {
if flags[0] == "spoiler" {
Ok(true)
} else {
Err(Error::custom(format!(
Expand Down

0 comments on commit 88a001f

Please sign in to comment.