Skip to content

Commit 07ef957

Browse files
committed
Fix Clippy warnings (legacy_numeric_constants) + some unused imports
1 parent a276bb9 commit 07ef957

File tree

5 files changed

+1
-8
lines changed

5 files changed

+1
-8
lines changed

src/boot_sector.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
use core::slice;
2-
use core::u16;
3-
use core::u8;
42

53
use crate::dir_entry::DIR_ENTRY_SIZE;
64
use crate::error::{Error, IoError};
@@ -820,7 +818,6 @@ pub(crate) fn format_boot_sector<E: IoError>(
820818
#[cfg(test)]
821819
mod tests {
822820
use super::*;
823-
use core::u32;
824821

825822
fn init() {
826823
let _ = env_logger::builder().is_test(true).try_init();

src/dir.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#[cfg(all(not(feature = "std"), feature = "alloc", feature = "lfn"))]
22
use alloc::vec::Vec;
3-
use core::char;
43
use core::num;
54
use core::str;
65
#[cfg(feature = "lfn")]

src/dir_entry.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use core::convert::TryInto;
66
use core::fmt;
77
#[cfg(not(feature = "unicode"))]
88
use core::iter;
9-
use core::str;
109

1110
#[cfg(feature = "lfn")]
1211
use crate::dir::LfnBuffer;

src/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::fs::{FileSystem, ReadWriteSeek};
66
use crate::io::{IoBase, Read, Seek, SeekFrom, Write};
77
use crate::time::{Date, DateTime, TimeProvider};
88

9-
const MAX_FILE_SIZE: u32 = core::u32::MAX;
9+
const MAX_FILE_SIZE: u32 = u32::MAX;
1010

1111
/// A FAT filesystem file object used for reading and writing data.
1212
///

src/fs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
use alloc::string::String;
33
use core::borrow::BorrowMut;
44
use core::cell::{Cell, RefCell};
5-
use core::char;
65
use core::convert::TryFrom;
76
use core::fmt::Debug;
87
use core::marker::PhantomData;
9-
use core::u32;
108

119
use crate::boot_sector::{format_boot_sector, BiosParameterBlock, BootSector};
1210
use crate::dir::{Dir, DirRawStream};

0 commit comments

Comments
 (0)