forked from M-Labs/rust-fatfs
Fix no_std build
This commit is contained in:
parent
4528aedc6e
commit
98c0fa528c
@ -13,7 +13,7 @@ use chrono::{TimeZone, Local, Datelike, Timelike};
|
|||||||
use chrono;
|
use chrono;
|
||||||
|
|
||||||
#[cfg(all(not(feature = "std"), feature = "alloc"))]
|
#[cfg(all(not(feature = "std"), feature = "alloc"))]
|
||||||
use alloc::{Vec, String, string::ToString};
|
use alloc::{Vec, String};
|
||||||
|
|
||||||
use fs::{FileSystem, FatType, ReadWriteSeek, OemCpConverter};
|
use fs::{FileSystem, FatType, ReadWriteSeek, OemCpConverter};
|
||||||
use file::File;
|
use file::File;
|
||||||
@ -785,7 +785,7 @@ impl <'a, T: ReadWriteSeek> DirEntry<'a, T> {
|
|||||||
}
|
}
|
||||||
#[cfg(not(feature = "alloc"))]
|
#[cfg(not(feature = "alloc"))]
|
||||||
pub(crate) fn eq_name(&self, name: &str) -> bool {
|
pub(crate) fn eq_name(&self, name: &str) -> bool {
|
||||||
self.short_name.eq_ignore_case(name)
|
self.short_name.eq_ignore_case(name, self.fs.options.oem_cp_converter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user