diff --git a/audio/Cargo.toml b/audio/Cargo.toml index 6c485e25..a0f95310 100644 --- a/audio/Cargo.toml +++ b/audio/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["Paul Lietar "] description="The audio fetching and processing logic for librespot" license="MIT" +edition = "2018" [dependencies.librespot-core] path = "../core" diff --git a/audio/src/fetch.rs b/audio/src/fetch.rs index ef68ed87..1ab6ce78 100644 --- a/audio/src/fetch.rs +++ b/audio/src/fetch.rs @@ -1,9 +1,9 @@ +use crate::range_set::{Range, RangeSet}; use byteorder::{BigEndian, ByteOrder, WriteBytesExt}; use bytes::Bytes; use futures::sync::{mpsc, oneshot}; use futures::Stream; use futures::{Async, Future, Poll}; -use range_set::{Range, RangeSet}; use std::cmp::{max, min}; use std::fs; use std::io::{self, Read, Seek, SeekFrom, Write}; diff --git a/connect/Cargo.toml b/connect/Cargo.toml index 270f605e..c468d2d3 100644 --- a/connect/Cargo.toml +++ b/connect/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["Paul Lietar "] description="The discovery and Spotify Connect logic for librespot" license="MIT" +edition = "2018" [dependencies.librespot-core] path = "../core" diff --git a/core/Cargo.toml b/core/Cargo.toml index 908b9073..9e9ccce4 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -5,6 +5,7 @@ authors = ["Paul Lietar "] build = "build.rs" description="The core functionality provided by librespot" license="MIT" +edition = "2018" [dependencies.librespot-protocol] path = "../protocol" diff --git a/metadata/Cargo.toml b/metadata/Cargo.toml index 75028195..02c0f2b5 100644 --- a/metadata/Cargo.toml +++ b/metadata/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["Paul Lietar "] description="The metadata logic for librespot" license="MIT" +edition = "2018" [dependencies] byteorder = "1.3" diff --git a/playback/Cargo.toml b/playback/Cargo.toml index d7d1c5b5..f414d5ec 100644 --- a/playback/Cargo.toml +++ b/playback/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" authors = ["Sasha Hilton "] description="The audio playback logic for librespot" license="MIT" +edition = "2018" [dependencies.librespot-audio] path = "../audio" diff --git a/playback/src/player.rs b/playback/src/player.rs index ba61471f..4d1ae4fb 100644 --- a/playback/src/player.rs +++ b/playback/src/player.rs @@ -15,15 +15,15 @@ use crate::config::{Bitrate, PlayerConfig}; use librespot_core::session::Session; use librespot_core::spotify_id::SpotifyId; -use audio::{AudioDecrypt, AudioFile, StreamLoaderController}; -use audio::{VorbisDecoder, VorbisPacket}; -use audio::{ +use crate::audio::{AudioDecrypt, AudioFile, StreamLoaderController}; +use crate::audio::{VorbisDecoder, VorbisPacket}; +use crate::audio::{ READ_AHEAD_BEFORE_PLAYBACK_ROUNDTRIPS, READ_AHEAD_BEFORE_PLAYBACK_SECONDS, READ_AHEAD_DURING_PLAYBACK_ROUNDTRIPS, READ_AHEAD_DURING_PLAYBACK_SECONDS, }; -use audio_backend::Sink; -use metadata::{AudioItem, FileFormat}; -use mixer::AudioFilter; +use crate::audio_backend::Sink; +use crate::metadata::{AudioItem, FileFormat}; +use crate::mixer::AudioFilter; pub struct Player { commands: Option>, diff --git a/protocol/Cargo.toml b/protocol/Cargo.toml index 4c9a332b..792f5b5b 100644 --- a/protocol/Cargo.toml +++ b/protocol/Cargo.toml @@ -5,6 +5,7 @@ authors = ["Paul LiƩtar "] build = "build.rs" description="The protobuf logic for communicating with Spotify servers" license="MIT" +edition = "2018" [dependencies] protobuf = "2.8.1"