Skip to content

Commit 09d9b63

Browse files
dj8yfodj8yf0μl
andauthored
ci: cache @v1 -> @v2; + clippy 1.85 (#403)
rust-lang/rust-clippy#14363 --------- Co-authored-by: dj8yf0μl <[email protected]>
1 parent a9886fd commit 09d9b63

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
profile: minimal
7777
toolchain: ${{ matrix.toolchain }}
7878
default: true
79-
- uses: Swatinem/rust-cache@v1
79+
- uses: Swatinem/rust-cache@v2
8080
- name: Add wasm32 target
8181
run: rustup target add wasm32-unknown-unknown
8282
- name: Check with stable features

workspaces/src/operations.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ impl Transaction {
272272
self.transact_raw()
273273
.await
274274
.map(ExecutionFinalResult::from_view)
275-
.map_err(crate::error::Error::from)
276275
}
277276

278277
/// Send the transaction to the network to be processed. This will be done asynchronously
@@ -369,8 +368,7 @@ impl CallTransaction {
369368
self.function.deposit,
370369
)
371370
.await
372-
.map(ExecutionFinalResult::from_view)
373-
.map_err(crate::error::Error::from)?;
371+
.map(ExecutionFinalResult::from_view)?;
374372

375373
for callback in self.worker.tx_callbacks.iter() {
376374
callback(txn.total_gas_burnt)?;

workspaces/src/rpc/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ impl ProcessQuery for ViewState {
300300
block_reference,
301301
request: QueryRequest::ViewState {
302302
account_id: self.account_id,
303-
prefix: StoreKey::from(self.prefix.map(Vec::from).unwrap_or_default()),
303+
prefix: StoreKey::from(self.prefix.unwrap_or_default()),
304304
include_proof: false,
305305
},
306306
})

workspaces/src/worker/impls.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ where
176176
.transfer_near(signer, receiver_id, amount_yocto)
177177
.await
178178
.map(ExecutionFinalResult::from_view)
179-
.map_err(crate::error::Error::from)
180179
}
181180

182181
/// Deletes an account from the network. The beneficiary will receive the balance
@@ -191,7 +190,6 @@ where
191190
.delete_account(signer, account_id, beneficiary_id)
192191
.await
193192
.map(ExecutionFinalResult::from_view)
194-
.map_err(crate::error::Error::from)
195193
}
196194

197195
/// Returns the status of the network.

workspaces/tests/query.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::literal_string_with_formatting_args)]
12
use near_workspaces::types::NearToken;
23
use near_workspaces::{network::Sandbox, Contract, Worker};
34

0 commit comments

Comments
 (0)