Skip to content

Commit

Permalink
cargo +1.38.0 fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Sep 27, 2019
1 parent 86591d9 commit 477a8d9
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 12 deletions.
1 change: 0 additions & 1 deletion core/src/entry.rs
Expand Up @@ -555,5 +555,4 @@ mod tests {
bad_ticks[1].hash = one;
assert!(!bad_ticks.verify(&one)); // inductive step, bad
}

}
1 change: 0 additions & 1 deletion programs/exchange_api/src/lib.rs
Expand Up @@ -25,5 +25,4 @@ pub mod faucet {
EXCHANGE_FAUCET_ID,
"ExchangeFaucet11111111111111111111111111111"
);

}
4 changes: 2 additions & 2 deletions programs/stake_api/src/stake_instruction.rs
Expand Up @@ -174,7 +174,8 @@ fn metas_for_authorized_signer(

// append signer at the end
if !is_own_signer {
account_metas.push(AccountMeta::new_credit_only(*authorized_signer, true)) // signer
account_metas.push(AccountMeta::new_credit_only(*authorized_signer, true))
// signer
}

account_metas
Expand Down Expand Up @@ -602,5 +603,4 @@ mod tests {
pretty_err::<StakeError>(StakeError::NoCreditsToRedeem.into())
)
}

}
4 changes: 2 additions & 2 deletions programs/vote_api/src/vote_instruction.rs
Expand Up @@ -103,7 +103,8 @@ fn metas_for_authorized_signer(

// append signer at the end
if !is_own_signer {
account_metas.push(AccountMeta::new_credit_only(*authorized_signer, true)) // signer
account_metas.push(AccountMeta::new_credit_only(*authorized_signer, true))
// signer
}

account_metas
Expand Down Expand Up @@ -337,5 +338,4 @@ mod tests {
pretty_err::<VoteError>(VoteError::VoteTooOld.into())
)
}

}
1 change: 0 additions & 1 deletion runtime/src/stakes.rs
Expand Up @@ -509,5 +509,4 @@ pub mod tests {
assert_eq!(vote_accounts.get(&vote_pubkey).unwrap().0, 0);
}
}

}
1 change: 0 additions & 1 deletion runtime/src/status_cache.rs
Expand Up @@ -434,5 +434,4 @@ mod tests {
fn test_age_sanity() {
assert!(MAX_CACHE_ENTRIES <= MAX_RECENT_BLOCKHASHES);
}

}
1 change: 0 additions & 1 deletion sdk/src/account_utils.rs
Expand Up @@ -57,5 +57,4 @@ mod tests {
let stored_state: u64 = account.state().unwrap();
assert_eq!(stored_state, state);
}

}
1 change: 0 additions & 1 deletion sdk/src/genesis_block.rs
Expand Up @@ -243,5 +243,4 @@ mod tests {
assert_eq!(block.hash(), loaded_block.hash());
let _ignored = std::fs::remove_file(&path);
}

}
1 change: 0 additions & 1 deletion sdk/src/hash.rs
Expand Up @@ -134,5 +134,4 @@ mod tests {
Err(ParseHashError::Invalid)
);
}

}
1 change: 0 additions & 1 deletion sdk/src/signature.rs
Expand Up @@ -235,5 +235,4 @@ mod tests {
Err(ParseSignatureError::Invalid)
);
}

}

0 comments on commit 477a8d9

Please sign in to comment.