Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ where

/// Open output stream using parameters configured so far.
pub fn open_stream(self) -> Result<OutputStream, StreamError> {
let device = self.device.as_ref().expect("output device specified");
let device = self.device.as_ref().expect("No output device specified");

OutputStream::open(device, &self.config, self.error_callback)
}
Expand All @@ -355,7 +355,7 @@ where
where
E: Clone,
{
let device = self.device.as_ref().expect("output device specified");
let device = self.device.as_ref().expect("No output device specified");
let error_callback = &self.error_callback;

OutputStream::open(device, &self.config, error_callback.clone()).or_else(|err| {
Expand Down