diff --git a/src/data.rs b/src/data.rs index e775705..3ad6c0b 100644 --- a/src/data.rs +++ b/src/data.rs @@ -30,7 +30,6 @@ pub enum NbtList { } /// 基本 NBT 数据类型 -#[allow(unused)] #[derive(Debug, Clone)] pub enum NbtValue { /// 0x00 @@ -164,7 +163,6 @@ macro_rules! read_data { }; } -#[allow(unused)] impl NbtValue { pub fn as_end(&self) -> Option<()> { match self { diff --git a/src/read.rs b/src/read.rs index 0cf2574..e5ae679 100644 --- a/src/read.rs +++ b/src/read.rs @@ -1,4 +1,4 @@ -use crate::data::{NbtItem, NbtLength, NbtList, NbtValue, Reader}; +use crate::data::{NbtItem, NbtList, NbtValue, Reader}; use std::convert::From; use std::io::{Cursor, Read}; @@ -220,7 +220,6 @@ pub enum NbtStatus { /// NbtItem /// 完整的读取逻辑就在这里了 /// 来力 -#[allow(unused)] impl TryFrom> for NbtItem { type Error = std::io::Error;