From 98c0fa528c235b94bc418e529aff9d7163a23149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Mon, 25 Jun 2018 23:56:46 +0200 Subject: [PATCH] Fix no_std build --- src/dir_entry.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dir_entry.rs b/src/dir_entry.rs index 4927874..b0a3b17 100644 --- a/src/dir_entry.rs +++ b/src/dir_entry.rs @@ -13,7 +13,7 @@ use chrono::{TimeZone, Local, Datelike, Timelike}; use chrono; #[cfg(all(not(feature = "std"), feature = "alloc"))] -use alloc::{Vec, String, string::ToString}; +use alloc::{Vec, String}; use fs::{FileSystem, FatType, ReadWriteSeek, OemCpConverter}; use file::File; @@ -785,7 +785,7 @@ impl <'a, T: ReadWriteSeek> DirEntry<'a, T> { } #[cfg(not(feature = "alloc"))] 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) } }