X-Git-Url: https://git.chrismorgan.info/anymap/blobdiff_plain/7606e75aa4aac3580b1951fe68a18888dd0cae0e..b3def7765767c9806a2c4db15b126392e540a19a:/src/any.rs diff --git a/src/any.rs b/src/any.rs index 45ad5cc..93130e0 100644 --- a/src/any.rs +++ b/src/any.rs @@ -88,10 +88,10 @@ macro_rules! impl_clone { } } -#[cfg(feature = "nightly")] +#[cfg(feature = "unstable")] use std::raw::TraitObject; -#[cfg(not(feature = "nightly"))] +#[cfg(not(feature = "unstable"))] #[repr(C)] #[allow(raw_pointer_derive)] #[derive(Copy, Clone)] @@ -116,15 +116,9 @@ pub trait IntoBox: Any { macro_rules! implement { ($base:ident, $(+ $bounds:ident)*) => { - impl<'a> fmt::Debug for &'a ($base $(+ $bounds)*) { + impl fmt::Debug for $base $(+ $bounds)* { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.pad(stringify!(&($base $(+ $bounds)*))) - } - } - - impl<'a> fmt::Debug for Box<$base $(+ $bounds)*> { - fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.pad(stringify!(Box<$base $(+ $bounds)*>)) + f.pad(stringify!($base $(+ $bounds)*)) } }