Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
tramhao committed Nov 24, 2023
1 parent 8e8d88e commit 7b22a68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playback/src/rusty_backend/decoder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Symphonia {
)?;

let Some(track) = probed.format.default_track() else {
return Ok(None)
return Ok(None);
};

let mut decoder = symphonia::default::get_codecs().make(
Expand Down
2 changes: 1 addition & 1 deletion playback/src/rusty_backend/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl OutputStream {
default_stream.or_else(|original_err| {
// default device didn't work, try other ones
let Ok(mut devices) = cpal::default_host().output_devices() else {
return Err(original_err);
return Err(original_err);
};

devices
Expand Down
2 changes: 1 addition & 1 deletion tui/src/ui/components/xywh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Model {
return Ok(());
}
let Some(track) = self.playlist.current_track().cloned() else {
return Ok(())
return Ok(());
};

match track.media_type {
Expand Down

0 comments on commit 7b22a68

Please sign in to comment.