Permalink
Browse files

Fix formatting

  • Loading branch information...
edolstra committed Jan 11, 2019
1 parent 66c23b8 commit 4aae494db2f59d1f17c7d132a287ffd78f57784a
Showing with 8 additions and 4 deletions.
  1. +1 −1 cardano/src/block/types.rs
  2. +1 −1 chain-impl-mockchain/src/key.rs
  3. +6 −2 chain-storage-sqlite/src/lib.rs
@@ -103,7 +103,7 @@ impl chain_core::property::Deserialize for HeaderHash {
}
}

impl chain_core::property::BlockId for HeaderHash { }
impl chain_core::property::BlockId for HeaderHash {}

#[derive(PartialEq, Eq, PartialOrd, Ord, Copy, Clone)]
pub struct BlockVersion(u16, u16, u8);
@@ -74,7 +74,7 @@ impl property::Deserialize for Hash {
}
}

impl property::BlockId for Hash { }
impl property::BlockId for Hash {}

/// Cryptographic signature.
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
@@ -183,7 +183,9 @@ where
let mut stmt_get_block = self.stmt_get_block.borrow_mut();
stmt_get_block.reset().unwrap();

stmt_get_block.bind(1, &block_hash.serialize_as_vec().unwrap()[..]).unwrap();
stmt_get_block
.bind(1, &block_hash.serialize_as_vec().unwrap()[..])
.unwrap();

match stmt_get_block.next().unwrap() {
sqlite::State::Done => Err(Error::BlockNotFound),
@@ -234,7 +236,9 @@ where
let mut stmt_put_tag = self.stmt_put_tag.borrow_mut();
stmt_put_tag.reset().unwrap();
stmt_put_tag.bind(1, tag_name).unwrap();
stmt_put_tag.bind(2, &block_hash.serialize_as_vec().unwrap()[..]).unwrap();
stmt_put_tag
.bind(2, &block_hash.serialize_as_vec().unwrap()[..])
.unwrap();
stmt_put_tag.next().unwrap();
Ok(())
}

0 comments on commit 4aae494

Please sign in to comment.