aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLakelezz <[email protected]>2018-12-07 23:12:34 +0100
committerAlex M. M <[email protected]>2018-12-07 23:12:34 +0100
commitc36bd39dda9c548b5a83b6f0df20ccdff9cd0fb8 (patch)
treeba43473c21c6129c2f3f85c24193374e99c2f157 /src/lib.rs
parentChange all builders to mutably borrow (#443) (diff)
downloadserenity-c36bd39dda9c548b5a83b6f0df20ccdff9cd0fb8.tar.xz
serenity-c36bd39dda9c548b5a83b6f0df20ccdff9cd0fb8.zip
Update to Rust 2018 (#445)
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f4215de..d732834 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;