From a09a6dc7f43bf5d0fc42b380f039829405b7f237 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 5 Aug 2023 12:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E5=85=88=E8=BF=99=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data.rs | 2 -- src/read.rs | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) 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;