From 017ee7d85c0c16aee1002e391d9f895b64e1ca71 Mon Sep 17 00:00:00 2001
From: Per Lindgren <per.lindgren@ltu.se>
Date: Thu, 13 Dec 2018 21:03:53 +0100
Subject: [PATCH] dropped nightly requiremet

---
 README.md            |  4 ----
 examples/example.rs  |  2 +-
 examples/example2.rs |  2 +-
 src/lib.rs           | 22 ----------------------
 4 files changed, 2 insertions(+), 28 deletions(-)

diff --git a/README.md b/README.md
index b45d4e1..4c36aab 100644
--- a/README.md
+++ b/README.md
@@ -7,10 +7,6 @@
 
 Adds debug to volatile register when compiled with `--features debug-fmt`.
 
-## Caveats
-
-Notice, the current implementation requres a nightly toolchain (`feature(specilization`)).
-This can be 
 
 ``` rust
 extern crate volatile_register;
diff --git a/examples/example.rs b/examples/example.rs
index 411c646..dd87d7f 100644
--- a/examples/example.rs
+++ b/examples/example.rs
@@ -1,4 +1,4 @@
-//! Example to show the use of debug output for small register arrays
+//! Example to show the use of `Debug` formatting for small register arrays
 //!
 //! > cargo run --example example2 --features debug-fmt
 //!
diff --git a/examples/example2.rs b/examples/example2.rs
index 1970e6a..805e28f 100644
--- a/examples/example2.rs
+++ b/examples/example2.rs
@@ -1,4 +1,4 @@
-//! Example to show the use of debug output for big register arrays
+//! Example to show the use of ¡Debug` formatting for big register arrays
 //!
 //! > cargo run --example example2 --features debug-fmt
 //!
diff --git a/src/lib.rs b/src/lib.rs
index 99522ce..c9394d2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,13 +27,11 @@
 
 #![deny(missing_docs)]
 #![no_std]
-#![cfg_attr(feature = "debug-fmt", feature(specialization))]
 
 extern crate vcell;
 
 #[cfg(feature = "debug-fmt")]
 use core::fmt::{self, Debug, UpperHex};
-#[cfg(feature = "debug-fmt")]
 use vcell::VolatileCell;
 
 /// Read-Only register
@@ -44,16 +42,6 @@ where
     register: VolatileCell<T>,
 }
 
-#[cfg(feature = "debug-fmt")]
-impl<T> fmt::Debug for RO<T>
-where
-    T: Copy + Debug,
-{
-    default fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f, "{:?}", self.read())
-    }
-}
-
 #[cfg(feature = "debug-fmt")]
 impl<T> fmt::Debug for RO<T>
 where
@@ -75,16 +63,6 @@ where
     }
 }
 
-#[cfg(feature = "debug-fmt")]
-impl<T> fmt::Debug for RW<T>
-where
-    T: Copy + Debug,
-{
-    default fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f, "{:?}", self.read())
-    }
-}
-
 #[cfg(feature = "debug-fmt")]
 impl<T> fmt::Debug for RW<T>
 where
-- 
GitLab