diff --git a/src/dir_entry.rs b/src/dir_entry.rs index ba4ac5e..99f8197 100644 --- a/src/dir_entry.rs +++ b/src/dir_entry.rs @@ -1,5 +1,5 @@ #[cfg(all(not(feature = "std"), feature = "alloc"))] -use alloc::{string::String, vec::Vec}; +use alloc::string::String; use core::char; use core::iter::FromIterator; use core::{fmt, str}; diff --git a/src/lib.rs b/src/lib.rs index 2773d79..3e4531c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -58,6 +58,12 @@ #![cfg_attr(all(not(feature = "std"), feature = "alloc"), feature(alloc))] // Disable warnings to not clutter code with cfg too much #![cfg_attr(not(feature = "alloc"), allow(dead_code, unused_imports))] +// Inclusive ranges requires Rust 1.26.0 +#![allow(ellipsis_inclusive_range_patterns)] +// `dyn` syntax requires Rust 1.27.0 +#![allow(bare_trait_objects)] +// `alloc` compiler feature is needed in Rust before 1.36 +#![cfg_attr(all(not(feature = "std"), feature = "alloc"), allow(stable_features))] extern crate byteorder;