This repository was archived by the owner on Jan 22, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub struct HWISignature {
3535
3636fn 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}
You can’t perform that action at this time.
0 commit comments