mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Fix fmt lint from 05dcb652a0
This commit is contained in:
parent
05dcb652a0
commit
ce9eb42469
1 changed files with 6 additions and 5 deletions
|
@ -8,11 +8,12 @@ async fn main() {
|
||||||
let name = "Librespot";
|
let name = "Librespot";
|
||||||
let device_id = hex::encode(Sha1::digest(name.as_bytes()));
|
let device_id = hex::encode(Sha1::digest(name.as_bytes()));
|
||||||
|
|
||||||
let mut server = librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id)
|
let mut server =
|
||||||
.name(name)
|
librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id)
|
||||||
.device_type(DeviceType::Computer)
|
.name(name)
|
||||||
.launch()
|
.device_type(DeviceType::Computer)
|
||||||
.unwrap();
|
.launch()
|
||||||
|
.unwrap();
|
||||||
|
|
||||||
while let Some(x) = server.next().await {
|
while let Some(x) = server.next().await {
|
||||||
println!("Received {:?}", x);
|
println!("Received {:?}", x);
|
||||||
|
|
Loading…
Reference in a new issue