diff options
| author | Lakelezz <[email protected]> | 2018-12-07 23:12:34 +0100 |
|---|---|---|
| committer | Alex M. M <[email protected]> | 2018-12-07 23:12:34 +0100 |
| commit | c36bd39dda9c548b5a83b6f0df20ccdff9cd0fb8 (patch) | |
| tree | ba43473c21c6129c2f3f85c24193374e99c2f157 /src/lib.rs | |
| parent | Change all builders to mutably borrow (#443) (diff) | |
| download | serenity-c36bd39dda9c548b5a83b6f0df20ccdff9cd0fb8.tar.xz serenity-c36bd39dda9c548b5a83b6f0df20ccdff9cd0fb8.zip | |
Update to Rust 2018 (#445)
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -105,17 +105,17 @@ //! [gateway docs]: gateway/index.html #![doc(html_root_url = "https://docs.rs/serenity/*")] #![allow(unknown_lints)] -#![allow(doc_markdown, inline_always)] -#![warn(enum_glob_use, if_not_else)] +#![allow(clippy::doc_markdown, clippy::inline_always)] +#![warn(clippy::enum_glob_use, clippy::if_not_else)] #[macro_use] extern crate bitflags; -#[allow(unused_imports)] +#[allow(clippy::unused_imports)] #[macro_use] extern crate log; #[macro_use] extern crate serde_derive; -#[allow(unused_imports)] +#[allow(clippy::unused_imports)] #[macro_use] extern crate serde_json; @@ -152,7 +152,7 @@ extern crate typemap; #[cfg(feature = "url")] extern crate url; -#[allow(unused_imports)] +#[allow(clippy::unused_imports)] #[cfg(test)] #[macro_use] extern crate matches; @@ -183,13 +183,13 @@ pub mod voice; mod error; -pub use error::{Error, Result}; +pub use crate::error::{Error, Result}; #[cfg(feature = "client")] -pub use client::Client; +pub use crate::client::Client; #[cfg(feature = "cache")] -use cache::Cache; +use crate::cache::Cache; #[cfg(feature = "cache")] use parking_lot::RwLock; |