core: various cleanups, improvements, code comments (#38)

* core: cleanup slicing impls for Hash
* core: clean up Readable trait, implement Readable/Writeable for various integers
* core: change Hash debug output to hex
* core: correct warnings in all modules
This commit is contained in:
Merope Riddle
2017-04-10 06:17:23 +00:00
committed by Ignotus Peverell
parent 9e82fb1774
commit 39ddeb0a2a
16 changed files with 224 additions and 102 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ impl ser::Writeable for Tip {
}
}
impl ser::Readable<Tip> for Tip {
impl ser::Readable for Tip {
fn read(reader: &mut ser::Reader) -> Result<Tip, ser::Error> {
let height = try!(reader.read_u64());
let last = try!(Hash::read(reader));