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/utils/mod.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/utils/mod.rs')
| -rw-r--r-- | src/utils/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index 8b9c482..0162010 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -12,9 +12,9 @@ pub use self::{ }; use base64; -use internal::prelude::*; -use prelude::RwLock; -use model::{ +use crate::internal::prelude::*; +use crate::prelude::RwLock; +use crate::model::{ channel::Channel, misc::EmojiIdentifier, id::{ @@ -36,9 +36,9 @@ use std::{ }; #[cfg(feature = "cache")] -use cache::Cache; +use crate::cache::Cache; #[cfg(feature = "cache")] -use CACHE; +use crate::CACHE; /// Converts a HashMap into a final `serde_json::Map` representation. pub fn hashmap_to_json_map<H, T>(map: HashMap<T, Value, H>) @@ -858,7 +858,7 @@ mod test { #[test] fn test_content_safe() { - use model::{ + use crate::model::{ user::User, Permissions, prelude::*, |