1
0
Fork 0
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:
Roderick van Domburg 2021-04-05 23:14:02 +02:00
parent 78bc621ebb
commit 928a673653
7 changed files with 7 additions and 7 deletions

View file

@ -16,7 +16,7 @@ pub struct GstreamerSink {
}
impl Open for GstreamerSink {
fn open(device: Option<String>, format: AudioFormat) -> GstreamerSink {
fn open(device: Option<String>, format: AudioFormat) -> Self {
info!("Using GStreamer sink with format: {:?}", format);
gst::init().expect("failed to init GStreamer!");