Skip to content

Commit

Permalink
update rust
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd committed Sep 1, 2021
1 parent c961108 commit d72cdec
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- uses: actions/checkout@v2
- name: Setup
run: |
rustup toolchain install 1.51.0-x86_64-unknown-linux-gnu
rustup component add rustfmt --toolchain 1.51.0-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain 1.51.0-x86_64-unknown-linux-gnu
rustup toolchain install 1.54.0-x86_64-unknown-linux-gnu
rustup component add rustfmt --toolchain 1.54.0-x86_64-unknown-linux-gnu
rustup component add clippy --toolchain 1.54.0-x86_64-unknown-linux-gnu
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion fastpay/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl ClientServerBenchmark {
};
next_recipient = *pubx;
let order = TransferOrder::new(transfer.clone(), secx);
let shard = AuthorityState::get_shard(self.num_shards, &pubx);
let shard = AuthorityState::get_shard(self.num_shards, pubx);

// Serialize order
let bufx = serialize_transfer_order(&order);
Expand Down
2 changes: 1 addition & 1 deletion fastpay/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ impl MassClient {
}
Some(request) => request,
};
let status = time::timeout(self.send_timeout, stream.write_data(&request)).await;
let status = time::timeout(self.send_timeout, stream.write_data(request)).await;
if let Err(error) = status {
error!("Failed to send request: {}", error);
continue;
Expand Down
2 changes: 1 addition & 1 deletion fastpay_core/src/unit_tests/authority_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ fn init_transfer_order(
sequence_number: SequenceNumber::new(),
user_data: UserData::default(),
};
TransferOrder::new(transfer, &secret)
TransferOrder::new(transfer, secret)
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion fastpay_core/src/unit_tests/serialize_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ fn test_info_response() {
};

for resp in [resp1, resp2, resp3, resp4].iter() {
let buf = serialize_info_response(&resp);
let buf = serialize_info_response(resp);
let result = deserialize_message(buf.as_slice());
assert!(result.is_ok());
if let SerializedMessage::InfoResp(o) = result.unwrap() {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.51.0
1.54.0

0 comments on commit d72cdec

Please sign in to comment.