Skip to content

Commit d60187e

Browse files
committed
Merge branch 'rust-1.76.0'
2 parents 6b9272a + 7dc46c3 commit d60187e

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.ci/run-container-ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
set -e
2626
set -x
2727

28-
CONTAINER=shiftcrypto/firmware_v2:36
28+
CONTAINER=shiftcrypto/firmware_v2:37
2929

3030
if [ "$1" == "pull" ] ; then
3131
docker pull "$CONTAINER"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ RUN rustup target add thumbv7em-none-eabi
130130
RUN rustup component add rustfmt
131131
RUN rustup component add clippy
132132
RUN CARGO_HOME=/opt/cargo cargo install cbindgen --version 0.26.0 --locked
133-
RUN CARGO_HOME=/opt/cargo cargo install bindgen-cli --version 0.69.1 --locked
133+
RUN CARGO_HOME=/opt/cargo cargo install bindgen-cli --version 0.69.4 --locked
134134

135135
COPY tools/prost-build-proto prost-build-proto
136136
RUN CARGO_HOME=/opt/cargo cargo install --path prost-build-proto --locked

src/rust/bitbox02-rust/src/hww/api/bitcoin/signtx.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,8 @@ async fn _process(request: &pb::BtcSignInitRequest) -> Result<Response, Error> {
910910
const SIGHASH_ALL: u32 = 0x01;
911911
let sighash = bip143::sighash(&bip143::Args {
912912
version: request.version,
913-
hash_prevouts: Sha256::digest(hash_prevouts).try_into().unwrap(),
914-
hash_sequence: Sha256::digest(hash_sequence).try_into().unwrap(),
913+
hash_prevouts: Sha256::digest(hash_prevouts).into(),
914+
hash_sequence: Sha256::digest(hash_sequence).into(),
915915
outpoint_hash: tx_input.prev_out_hash.as_slice().try_into().unwrap(),
916916
outpoint_index: tx_input.prev_out_index,
917917
sighash_script: &sighash_script(
@@ -921,7 +921,7 @@ async fn _process(request: &pb::BtcSignInitRequest) -> Result<Response, Error> {
921921
)?,
922922
prevout_value: tx_input.prev_out_value,
923923
sequence: tx_input.sequence,
924-
hash_outputs: Sha256::digest(hash_outputs).try_into().unwrap(),
924+
hash_outputs: Sha256::digest(hash_outputs).into(),
925925
locktime: request.locktime,
926926
sighash_flags: SIGHASH_ALL,
927927
});
@@ -2187,10 +2187,8 @@ mod tests {
21872187
true
21882188
})),
21892189
ui_confirm_create: Some(Box::new(move |params| unsafe {
2190-
match {
2191-
UI_COUNTER += 1;
2192-
UI_COUNTER
2193-
} {
2190+
UI_COUNTER += 1;
2191+
match UI_COUNTER {
21942192
7 => {
21952193
assert_eq!(params.title, "High fee");
21962194
assert_eq!(params.body, "The fee is 18.1%\nthe send amount.\nProceed?");

src/rust/bitbox02-rust/src/hww/api/ethereum/sign_typed_msg.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -931,10 +931,8 @@ mod tests {
931931
static mut UI_COUNTER: u32 = 0;
932932
mock(Data {
933933
ui_confirm_create: Some(Box::new(|params| unsafe {
934-
match {
935-
UI_COUNTER += 1;
936-
UI_COUNTER
937-
} {
934+
UI_COUNTER += 1;
935+
match UI_COUNTER {
938936
1 => {
939937
assert_eq!(params.title, "Domain (1/4)");
940938
assert_eq!(params.body, "name: Ether Mail");

src/rust/rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.74.0
1+
1.76.0

0 commit comments

Comments
 (0)