From 082e79e3217d8a879f3e087c4241f66dde787497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Wed, 17 Jul 2019 20:47:03 +0200 Subject: [PATCH] Hide warnings which require bumping Rust compiler version --- src/dir_entry.rs | 2 +- src/lib.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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;