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
This commit is contained in:
ice_iix 2018-11-04 11:48:03 -08:00
parent d2f256e19f
commit 4b59bce512
2 changed files with 11 additions and 11 deletions

View File

@ -22,8 +22,8 @@ use reqwest;
pub mod mojang; pub mod mojang;
use nbt; use crate::nbt;
use format; use crate::format;
use std::fmt; use std::fmt;
use std::default; use std::default;
use std::net::TcpStream; use std::net::TcpStream;
@ -34,7 +34,7 @@ use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt};
use flate2::read::{ZlibDecoder, ZlibEncoder}; use flate2::read::{ZlibDecoder, ZlibEncoder};
use flate2::Compression; use flate2::Compression;
use std::time::{Instant, Duration}; use std::time::{Instant, Duration};
use shared::Position; use crate::shared::Position;
pub const SUPPORTED_PROTOCOL: i32 = 315; pub const SUPPORTED_PROTOCOL: i32 = 315;
@ -52,7 +52,7 @@ macro_rules! state_packets {
)* )*
})+ })+
})+) => { })+) => {
use protocol::*; use crate::protocol::*;
use std::io; use std::io;
#[derive(Debug)] #[derive(Debug)]
@ -72,13 +72,13 @@ macro_rules! state_packets {
$( $(
pub mod $dir { pub mod $dir {
#![allow(unused_imports)] #![allow(unused_imports)]
use protocol::*; use crate::protocol::*;
use std::io; use std::io;
use format; use crate::format;
use nbt; use crate::nbt;
use types; use crate::types;
use item; use crate::item;
use shared::Position; use crate::shared::Position;
pub mod internal_ids { pub mod internal_ids {

View File

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
use format; use crate::format;
state_packets!( state_packets!(
handshake Handshaking { handshake Handshaking {