Skip to content

Commit

Permalink
remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
royaltm committed Mar 1, 2024
1 parent 7e9c271 commit 3988d21
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/header.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//! # **LHA** header and related types.
use core::convert::TryFrom;
#[cfg(feature = "std")]
use std::path::PathBuf;
#[cfg(feature = "std")]
Expand Down
1 change: 0 additions & 1 deletion src/header/compression.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use core::fmt;
use core::convert::TryFrom;
#[cfg(feature = "std")]
use std::error::Error;
#[cfg(feature = "std")]
Expand Down
1 change: 0 additions & 1 deletion src/header/ostype.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use core::fmt;
use core::convert::TryFrom;
#[cfg(feature = "std")]
use std::error::Error;
#[cfg(feature = "std")]
Expand Down
6 changes: 1 addition & 5 deletions src/header/parser.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
use core::num::Wrapping;
use core::slice;
use core::fmt::Write;
#[cfg(feature = "std")]
use std::path::PathBuf;
#[cfg(feature = "std")]
use std::borrow::Cow;
#[cfg(not(feature = "std"))]
use alloc::{vec::Vec, boxed::Box, string::String, borrow::Cow};
use alloc::vec::Vec;
use crate::error::{LhaError, LhaResult};
use crate::stub_io::Read;
use crate::crc::Crc16;
Expand Down

0 comments on commit 3988d21

Please sign in to comment.