Skip to content

Commit

Permalink
Try #350:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] committed Mar 22, 2019
2 parents 567e6d7 + dd5f8b6 commit 0c187fc
Show file tree
Hide file tree
Showing 25 changed files with 544 additions and 320 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fmt:
cargo fmt ${VERBOSE} --all -- --check

clippy:
cargo clippy ${VERBOSE} --all --all-targets --all-features -- -D warnings -D clippy::clone_on_ref_ptr -D clippy::enum_glob_use
cargo clippy ${VERBOSE} --all --all-targets --all-features -- -D warnings -D clippy::clone_on_ref_ptr -D clippy::enum_glob_use -D clippy::fallible_impl_from


ci: fmt clippy test
Expand Down
2 changes: 1 addition & 1 deletion network/src/service/discovery_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl ServiceProtocol for DiscoveryProtocol {
Ok(())
})
})
.unwrap();
.expect("Discovery init only once");
control.future_task(discovery_task);
}

Expand Down
1 change: 1 addition & 0 deletions protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ siphasher = "0.3.0"
rand = "0.6"
ckb-util = { path = "../util" }
ckb-merkle-tree = { path = "../util/merkle-tree"}
failure = "0.1.5"
5 changes: 3 additions & 2 deletions protocol/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ mod tests {
use ckb_core::block::BlockBuilder;
use ckb_core::header::HeaderBuilder;
use ckb_core::transaction::TransactionBuilder;
use ckb_util::TryInto;
use flatbuffers::get_root;

#[test]
Expand All @@ -632,7 +633,7 @@ mod tests {
builder.finish(b, None);

let fbs_header = get_root::<FbsHeader>(builder.finished_data());
assert_eq!(header, fbs_header.into());
assert_eq!(header, fbs_header.try_into().unwrap());
}

#[test]
Expand All @@ -645,7 +646,7 @@ mod tests {
builder.finish(b, None);

let fbs_block = get_root::<FbsBlock>(builder.finished_data());
assert_eq!(block, fbs_block.into());
assert_eq!(block, fbs_block.try_into().unwrap());
}

#[test]
Expand Down
Loading

0 comments on commit 0c187fc

Please sign in to comment.