From ce9eb4246946d42e4385737090f4a07924b890d2 Mon Sep 17 00:00:00 2001 From: JasonLG1979 Date: Sat, 1 Oct 2022 19:51:55 -0500 Subject: [PATCH] Fix fmt lint from https://github.com/librespot-org/librespot/commit/05dcb652a0acba529a5674e00312fba2a8ef20e6 --- discovery/examples/discovery.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/discovery/examples/discovery.rs b/discovery/examples/discovery.rs index 28a99e1a..0b9b5b24 100644 --- a/discovery/examples/discovery.rs +++ b/discovery/examples/discovery.rs @@ -8,11 +8,12 @@ async fn main() { let name = "Librespot"; let device_id = hex::encode(Sha1::digest(name.as_bytes())); - let mut server = librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id) - .name(name) - .device_type(DeviceType::Computer) - .launch() - .unwrap(); + let mut server = + librespot_discovery::Discovery::builder(device_id, SessionConfig::default().client_id) + .name(name) + .device_type(DeviceType::Computer) + .launch() + .unwrap(); while let Some(x) = server.next().await { println!("Received {:?}", x);