diff --git a/Cargo.toml b/Cargo.toml index 185cbf86..a1485175 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bitcoin" -version = "0.3.4" +version = "0.3.5" authors = ["Andrew Poelstra "] license = "CC0-1.0" homepage = "https://github.com/apoelstra/rust-bitcoin/" diff --git a/src/blockdata/script.rs b/src/blockdata/script.rs index 54f03d72..79ec4d3c 100644 --- a/src/blockdata/script.rs +++ b/src/blockdata/script.rs @@ -57,11 +57,19 @@ impl Clone for Script { impl fmt::LowerHex for Script { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - try!(f.write_str("Script(")); for &ch in self.0.iter() { try!(write!(f, "{:02x}", ch)); } - f.write_str(")") + Ok(()) + } +} + +impl fmt::UpperHex for Script { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + for &ch in self.0.iter() { + try!(write!(f, "{:02X}", ch)); + } + Ok(()) } }