mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 10:19:27 +02:00
DRY up constructors
This commit is contained in:
parent
78bc621ebb
commit
928a673653
7 changed files with 7 additions and 7 deletions
|
@ -10,7 +10,7 @@ pub struct StdoutSink {
|
|||
}
|
||||
|
||||
impl Open for StdoutSink {
|
||||
fn open(path: Option<String>, format: AudioFormat) -> StdoutSink {
|
||||
fn open(path: Option<String>, format: AudioFormat) -> Self {
|
||||
info!("Using pipe sink with format: {:?}", format);
|
||||
|
||||
let output: Box<dyn Write> = match path {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue