From cb9cf3ef708f20a01cba355b033be720fa3ca5ea Mon Sep 17 00:00:00 2001 From: ice_iix Date: Sun, 4 Nov 2018 11:48:03 -0800 Subject: [PATCH] Update to use crate:: for current crate, for Rust 2018 edition From `cargo fix --edition`, see https://rust-lang-nursery.github.io/edition-guide/print.html#the-crate-keyword-refers-to-the-current-crate --- protocol/src/item.rs | 4 ++-- protocol/src/types/metadata.rs | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/protocol/src/item.rs b/protocol/src/item.rs index dfea1c6..19fa87c 100644 --- a/protocol/src/item.rs +++ b/protocol/src/item.rs @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -use nbt; -use protocol::{self, Serializable}; +use crate::nbt; +use crate::protocol::{self, Serializable}; use std::io; use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt}; diff --git a/protocol/src/types/metadata.rs b/protocol/src/types/metadata.rs index d59ba51..5af4fcc 100644 --- a/protocol/src/types/metadata.rs +++ b/protocol/src/types/metadata.rs @@ -16,11 +16,11 @@ use std::collections::HashMap; use std::marker::PhantomData; use std::io; use std::fmt; -use protocol; -use protocol::Serializable; -use format; -use item; -use shared::Position; +use crate::protocol; +use crate::protocol::Serializable; +use crate::format; +use crate::item; +use crate::shared::Position; pub struct MetadataKey { index: i32,