From: Chris Morgan Date: Tue, 25 Jan 2022 03:43:04 +0000 (+1100) Subject: Flatten anymap::any out of existence X-Git-Tag: 1.0.0-beta.1~17 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/b07b62fd4d84fe1eedaba6c89c15990ced5089e6 Flatten anymap::any out of existence Namespaces are one honking great idea, but flat is better than nested. anymap::raw still makes sense. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 04ff219..1e7dbff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # 1.0.0 (unreleased) +- **Breaking change:** `anymap::any` flattened out of existence: + `anymap::any::{Any, CloneAny}` are now found at `anymap::{Any, CloneAny}`. + - Relicensed from MIT/Apache-2.0 to BlueOak-1.0.0/MIT/Apache-2.0. - Increased the minimum supported version of Rust from 1.7.0 to 1.34.0. diff --git a/src/lib.rs b/src/lib.rs index c9e0276..3f656e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,8 @@ use std::any::TypeId; use std::marker::PhantomData; use raw::RawMap; -use any::{UncheckedAnyExt, IntoBox, Any}; +use any::{UncheckedAnyExt, IntoBox}; +pub use any::{Any, CloneAny}; macro_rules! impl_common_methods { ( @@ -85,7 +86,7 @@ macro_rules! impl_common_methods { } } -pub mod any; +mod any; pub mod raw; /// A collection containing zero or one values for any given type and allowing convenient,