就先这样
This commit is contained in:
parent
df9471c74b
commit
a09a6dc7f4
@ -30,7 +30,6 @@ pub enum NbtList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 基本 NBT 数据类型
|
/// 基本 NBT 数据类型
|
||||||
#[allow(unused)]
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum NbtValue {
|
pub enum NbtValue {
|
||||||
/// 0x00
|
/// 0x00
|
||||||
@ -164,7 +163,6 @@ macro_rules! read_data {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
|
||||||
impl NbtValue {
|
impl NbtValue {
|
||||||
pub fn as_end(&self) -> Option<()> {
|
pub fn as_end(&self) -> Option<()> {
|
||||||
match self {
|
match self {
|
||||||
|
@ -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::convert::From;
|
||||||
use std::io::{Cursor, Read};
|
use std::io::{Cursor, Read};
|
||||||
|
|
||||||
@ -220,7 +220,6 @@ pub enum NbtStatus {
|
|||||||
/// NbtItem
|
/// NbtItem
|
||||||
/// 完整的读取逻辑就在这里了
|
/// 完整的读取逻辑就在这里了
|
||||||
/// 来力
|
/// 来力
|
||||||
#[allow(unused)]
|
|
||||||
impl TryFrom<Cursor<&[u8]>> for NbtItem {
|
impl TryFrom<Cursor<&[u8]>> for NbtItem {
|
||||||
type Error = std::io::Error;
|
type Error = std::io::Error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user