cargo fmt
rustc 1.27.0 ``` $ cargo fmt --version rustfmt 0.6.1-stable (49279d71 2018-05-08) ```
This commit is contained in:
parent
eec19c6d2c
commit
f2198c2e9a
|
@ -180,7 +180,8 @@ impl Transaction {
|
|||
/// Verify only the payment plan.
|
||||
pub fn verify_plan(&self) -> bool {
|
||||
if let Instruction::NewContract(contract) = &self.instruction {
|
||||
self.fee >= 0 && self.fee <= contract.tokens
|
||||
self.fee >= 0
|
||||
&& self.fee <= contract.tokens
|
||||
&& contract.plan.verify(contract.tokens - self.fee)
|
||||
} else {
|
||||
true
|
||||
|
|
|
@ -150,7 +150,8 @@ pub fn crdt_retransmit() {
|
|||
trace!("waiting to converge:");
|
||||
let mut done = false;
|
||||
for _ in 0..30 {
|
||||
done = c1.read().unwrap().table.len() == 3 && c2.read().unwrap().table.len() == 3
|
||||
done = c1.read().unwrap().table.len() == 3
|
||||
&& c2.read().unwrap().table.len() == 3
|
||||
&& c3.read().unwrap().table.len() == 3;
|
||||
if done {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue