From 82f41caeb9424c7111f670618f140a938c82604e Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 22 Jan 2016 12:05:51 +1100 Subject: [PATCH] 0.11.2: just fixing warnings and such. --- Cargo.toml | 2 +- src/any.rs | 1 - src/lib.rs | 2 +- src/raw.rs | 2 -- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 455611f..f13b83b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "anymap" -version = "0.11.1" +version = "0.11.2" authors = ["Chris Morgan "] description = "A safe and convenient store for one value of each type" #documentation = "http://www.rust-ci.org/chris-morgan/anymap/doc/anymap/index.html" diff --git a/src/any.rs b/src/any.rs index 93130e0..87028fb 100644 --- a/src/any.rs +++ b/src/any.rs @@ -93,7 +93,6 @@ use std::raw::TraitObject; #[cfg(not(feature = "unstable"))] #[repr(C)] -#[allow(raw_pointer_derive)] #[derive(Copy, Clone)] struct TraitObject { pub data: *mut (), diff --git a/src/lib.rs b/src/lib.rs index 5095829..64a0f6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ //! This crate provides the `AnyMap` type, a safe and convenient store for one value of each type. -#![cfg_attr(feature = "unstable", feature(drain, hashmap_hasher, raw))] +#![cfg_attr(feature = "unstable", feature(hashmap_hasher, raw))] #![cfg_attr(all(feature = "unstable", test), feature(test))] #![warn(missing_docs, unused_results)] diff --git a/src/raw.rs b/src/raw.rs index efa4852..3d1be50 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -7,11 +7,9 @@ use std::borrow::Borrow; use std::collections::hash_map::{self, HashMap}; #[cfg(feature = "unstable")] use std::collections::hash_state::HashState; -use std::default::Default; use std::hash::Hash; #[cfg(feature = "unstable")] use std::hash::Hasher; -use std::iter::IntoIterator; #[cfg(feature = "unstable")] use std::mem; use std::ops::{Index, IndexMut}; -- 2.42.0