Skip to content

Commit 6a6ae5f

Browse files
committed
Remove TryFrom import.
1 parent bbf0f3a commit 6a6ae5f

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

src/binaryxml.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
use crate::stringpool::StringPool;
22
use deku::prelude::*;
3-
use std::convert::TryFrom;
43
use std::rc::Rc;
54

65
#[derive(Debug, DekuRead)]
76
pub(crate) struct BinaryXmlDocument {
87
pub(crate) header: ChunkHeader,
98
pub(crate) string_pool: StringPool,
109
pub(crate) resource_map: ResourceMap,
11-
#[deku(bytes_read = "header.size -
12-
u32::try_from(header.header_size).unwrap() -
13-
string_pool.header.chunk_header.size -
10+
#[deku(bytes_read = "header.size -
11+
u32::try_from(header.header_size).unwrap() -
12+
string_pool.header.chunk_header.size -
1413
resource_map.header.size")]
1514
pub(crate) elements: Vec<XmlNode>,
1615
}

src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ mod binaryxml;
1919
mod stringpool;
2020
mod xml;
2121

22-
use std::convert::TryFrom;
2322
use thiserror::Error;
2423

2524
use crate::binaryxml::BinaryXmlDocument;

src/stringpool.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ use deku::prelude::*;
33

44
use byteorder::ByteOrder;
55
use byteorder::LittleEndian;
6-
use std::convert::TryFrom;
76
use std::io::Read;
87
use std::rc::Rc;
98

src/xml.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use indexmap::IndexMap;
2-
use std::convert::TryFrom;
32
use std::rc::Rc;
43

54
use crate::binaryxml::{

0 commit comments

Comments
 (0)