Skip to content
Snippets Groups Projects
Commit 22c42fab authored by Andrew Paseltiner's avatar Andrew Paseltiner
Browse files

Merge pull request #9 from apasel422/update

Use debug builder on stable and bump version
parents aba0b003 d2235928
No related branches found
No related tags found
No related merge requests found
[package]
name = "vec_map"
version = "0.3.0"
version = "0.4.0"
authors = ["Alex Crichton <alex@alexcrichton.com>",
"Jorge Aparicio <japaricious@gmail.com>",
"Alexis Beingessner <a.beingessner@gmail.com>",
......
......@@ -654,21 +654,8 @@ impl<V: Ord> Ord for VecMap<V> {
}
impl<V: fmt::Debug> fmt::Debug for VecMap<V> {
#[cfg(not(feature = "nightly"))]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
try!(write!(f, "{{"));
for (i, (k, v)) in self.iter().enumerate() {
if i != 0 { try!(write!(f, ", ")); }
try!(write!(f, "{}: {:?}", k, *v));
}
write!(f, "}}")
}
#[cfg(feature = "nightly")]
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_map().entries(self.iter()).finish()
f.debug_map().entries(self).finish()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment