From b9d7063099ef031861cea60fe9328009737872a7 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Thu, 17 Sep 2015 16:04:25 +0100 Subject: [PATCH] Base of ui complete --- protocol/src/format.rs | 2 +- protocol/src/item.rs | 3 +-- protocol/src/nbt/mod.rs | 3 +-- protocol/src/types/metadata.rs | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/protocol/src/format.rs b/protocol/src/format.rs index 26ec1e7..8cef4af 100644 --- a/protocol/src/format.rs +++ b/protocol/src/format.rs @@ -1,5 +1,5 @@ -extern crate serde_json; +use serde_json; use std::fmt; #[derive(Debug)] diff --git a/protocol/src/item.rs b/protocol/src/item.rs index 27661f2..2cdd046 100644 --- a/protocol/src/item.rs +++ b/protocol/src/item.rs @@ -1,10 +1,9 @@ -extern crate byteorder; use nbt; use protocol::{Serializable}; use std::io; use std::io::{Read, Write}; -use self::byteorder::{BigEndian, WriteBytesExt, ReadBytesExt}; +use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt}; #[derive(Debug)] pub struct Stack { diff --git a/protocol/src/nbt/mod.rs b/protocol/src/nbt/mod.rs index 7abfd9e..9bfd5f7 100644 --- a/protocol/src/nbt/mod.rs +++ b/protocol/src/nbt/mod.rs @@ -1,4 +1,3 @@ -extern crate byteorder; use std::collections::HashMap; use std::io; @@ -6,7 +5,7 @@ use std::io::{Read, Write}; use super::protocol::{Serializable}; use super::protocol; -use self::byteorder::{BigEndian, WriteBytesExt, ReadBytesExt}; +use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt}; #[derive(Debug)] pub enum Tag { diff --git a/protocol/src/types/metadata.rs b/protocol/src/types/metadata.rs index 3b78b42..7ad261e 100644 --- a/protocol/src/types/metadata.rs +++ b/protocol/src/types/metadata.rs @@ -15,6 +15,7 @@ pub struct MetadataKey { } impl MetadataKey { + #[allow(dead_code)] // TODO: Make const later when possible /*const*/ fn new(index: i32) -> MetadataKey { MetadataKey {