From 33620280f566ce58c513639baf35d805457e7722 Mon Sep 17 00:00:00 2001 From: Roderick van Domburg Date: Wed, 8 Dec 2021 20:44:24 +0100 Subject: [PATCH] Fix build on Cargo 1.48 --- Cargo.lock | 44 +-------------------------------- discovery/Cargo.toml | 1 - discovery/examples/discovery.rs | 6 ----- discovery/src/lib.rs | 2 -- 4 files changed, 1 insertion(+), 52 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index daf7ce62..d4501fef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -213,7 +213,7 @@ dependencies = [ "libc", "num-integer", "num-traits", - "time 0.1.43", + "time", "winapi", ] @@ -237,17 +237,6 @@ dependencies = [ "libloading 0.7.2", ] -[[package]] -name = "colored" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59" -dependencies = [ - "atty", - "lazy_static", - "winapi", -] - [[package]] name = "combine" version = "4.6.2" @@ -1316,7 +1305,6 @@ dependencies = [ "rand", "serde_json", "sha-1", - "simple_logger", "thiserror", "tokio", ] @@ -2297,19 +2285,6 @@ dependencies = [ "libc", ] -[[package]] -name = "simple_logger" -version = "1.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "205596cf77a15774e5601c5ef759f4211ac381c0855a1f1d5e24a46f60f93e9a" -dependencies = [ - "atty", - "colored", - "log", - "time 0.3.5", - "winapi", -] - [[package]] name = "slab" version = "0.4.5" @@ -2465,23 +2440,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "time" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41effe7cfa8af36f439fac33861b66b049edc6f9a32331e2312660529c1c24ad" -dependencies = [ - "itoa", - "libc", - "time-macros", -] - -[[package]] -name = "time-macros" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25eb0ca3468fc0acc11828786797f6ef9aa1555e4a211a60d64cc8e4d1be47d6" - [[package]] name = "tinyvec" version = "1.5.1" diff --git a/discovery/Cargo.toml b/discovery/Cargo.toml index 9b4d415e..368f3747 100644 --- a/discovery/Cargo.toml +++ b/discovery/Cargo.toml @@ -33,7 +33,6 @@ version = "0.3.1" [dev-dependencies] futures = "0.3" hex = "0.4" -simple_logger = "1.11" tokio = { version = "1.0", features = ["macros", "rt"] } [features] diff --git a/discovery/examples/discovery.rs b/discovery/examples/discovery.rs index cd913fd2..f7dee532 100644 --- a/discovery/examples/discovery.rs +++ b/discovery/examples/discovery.rs @@ -1,15 +1,9 @@ use futures::StreamExt; use librespot_discovery::DeviceType; use sha1::{Digest, Sha1}; -use simple_logger::SimpleLogger; #[tokio::main(flavor = "current_thread")] async fn main() { - SimpleLogger::new() - .with_level(log::LevelFilter::Debug) - .init() - .unwrap(); - let name = "Librespot"; let device_id = hex::encode(Sha1::digest(name.as_bytes())); diff --git a/discovery/src/lib.rs b/discovery/src/lib.rs index b1249a0d..98f776fb 100644 --- a/discovery/src/lib.rs +++ b/discovery/src/lib.rs @@ -7,8 +7,6 @@ //! This library uses mDNS and DNS-SD so that other devices can find it, //! and spawns an http server to answer requests of Spotify clients. -#![warn(clippy::all, missing_docs, rust_2018_idioms)] - mod server; use std::borrow::Cow;