Keep Clippy happy.
[anymap] / src / any.rs
index 45ad5cccc98dd59ba7309fcde048469e062d261d..87028fbc6334a7a42e4bb945bd9190fa3f9bf474 100644 (file)
@@ -88,12 +88,11 @@ 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)]
 struct TraitObject {
     pub data: *mut (),
@@ -116,15 +115,9 @@ pub trait IntoBox<A: ?Sized + UncheckedAnyExt>: 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)*))
             }
         }