From b07b62fd4d84fe1eedaba6c89c15990ced5089e6 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Tue, 25 Jan 2022 14:43:04 +1100 Subject: [PATCH] Flatten anymap::any out of existence Namespaces are one honking great idea, but flat is better than nested. anymap::raw still makes sense. --- CHANGELOG.md | 3 +++ src/lib.rs | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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, -- 2.42.0