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