Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 3c7db38

Browse files
Merge #68: Fix clippy 0.1.66
fbff967 ci: update build job and set rust stable to v1.66.1 (Yuki Kishimoto) 8321fc0 Fix clippy 0.1.66 (Yuki Kishimoto) Pull request description: ACKs for top commit: danielabrozzoni: utACK fbff967 Tree-SHA512: e3ba58584d4afc687e2a13ba3120a58fb2a17fe222801bfababf97cccbd912bec06efc157caf276f9fdf7a2576085f2e9c29191e1f1afbf1d184a514ea1b85af
2 parents 6e64291 + fbff967 commit 3c7db38

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,43 @@ jobs:
1919
build:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
23-
- run: cargo build
24-
- uses: actions-rs/clippy-check@v1
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
- name: Cache
25+
uses: actions/cache@v3
2526
with:
26-
token: ${{ secrets.GITHUB_TOKEN }}
27-
args: --all-features -- -D warnings
27+
path: |
28+
~/.cargo/registry
29+
~/.cargo/git
30+
target
31+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
32+
- name: Set profile
33+
run: rustup set profile minimal && rustup component add clippy
34+
- name: Build
35+
run: cargo build
36+
- name: Clippy
37+
run: cargo clippy --all-features -- -D warnings
2838
test-emulators:
2939
runs-on: ubuntu-20.04
3040
strategy:
3141
matrix:
3242
rust:
33-
- version: 1.61.0 # STABLE
43+
- version: 1.66.1 # STABLE
3444
- version: 1.41.1 # MSRV
3545
emulator:
3646
- name: trezor
3747
- name: ledger
3848
steps:
3949
- name: Checkout
4050
uses: actions/checkout@v3
41-
- name: cache
51+
- name: Cache
4252
uses: actions/cache@v3
4353
with:
4454
path: |
4555
~/.cargo/registry
4656
~/.cargo/git
4757
target
48-
key: ${{ runner.os }}-cargo-test-emulators-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
58+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
4959
- name: Set up Docker Buildx
5060
uses: docker/setup-buildx-action@v2
5161
- name: Build and push

src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl HWIClient {
214214
&self,
215215
psbt: &PartiallySignedTransaction,
216216
) -> Result<HWIPartiallySignedTransaction, Error> {
217-
let psbt = base64::encode(&serialize(psbt));
217+
let psbt = base64::encode(serialize(psbt));
218218
Python::with_gil(|py| {
219219
let output = self
220220
.hwilib

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct HWISignature {
3535

3636
fn from_b64<'de, D: Deserializer<'de>>(d: D) -> Result<Vec<u8>, D::Error> {
3737
let b64_string = String::deserialize(d)?;
38-
base64::decode(&b64_string)
38+
base64::decode(b64_string)
3939
.map_err(|_| serde::de::Error::custom("Error while Deserializing Signature"))
4040
}
4141

@@ -62,7 +62,7 @@ fn deserialize_psbt<'de, D: Deserializer<'de>>(
6262
d: D,
6363
) -> Result<PartiallySignedTransaction, D::Error> {
6464
let b64_string = String::deserialize(d)?;
65-
let bytes = base64::decode(&b64_string).map_err(serde::de::Error::custom)?;
65+
let bytes = base64::decode(b64_string).map_err(serde::de::Error::custom)?;
6666
bitcoin::consensus::deserialize::<PartiallySignedTransaction>(&bytes[..])
6767
.map_err(serde::de::Error::custom)
6868
}

0 commit comments

Comments
 (0)