Skip to content

Commit 1077808

Browse files
committed
ci2
1 parent 260a0fe commit 1077808

File tree

20 files changed

+214
-186
lines changed

20 files changed

+214
-186
lines changed

.github/workflows/ci-cosmwasm-contract.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: cargo fmt --all -- --check
2828
if: success() || failure()
2929
- name: Clippy check
30-
run: cargo clippy --tests -- --deny warnings
30+
run: cargo clippy --all-targets -- --deny warnings
3131
if: success() || failure()
3232
- name: Build
3333
run: cargo build --verbose

.github/workflows/ci-hermes-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: cargo fmt --all -- --check
2828
if: success() || failure()
2929
- name: Clippy check
30-
run: cargo clippy --tests -- --deny warnings
30+
run: cargo clippy --all-targets -- --deny warnings
3131
if: success() || failure()
3232
- name: Run executor tests
3333
run: cargo test

.github/workflows/ci-message-buffer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ jobs:
6161
run: cargo fmt --all -- --check
6262
if: success() || failure()
6363
- name: Cargo clippy
64-
run: cargo clippy --tests -- --deny warnings
64+
run: cargo clippy --all-targets -- --deny warnings
6565
if: success() || failure()

.github/workflows/ci-remote-executor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: cargo fmt --all -- --check
2929
if: success() || failure()
3030
- name: Clippy check
31-
run: cargo clippy --tests -- --deny warnings
31+
run: cargo clippy --all-targets -- --deny warnings
3232
if: success() || failure()
3333
- name: Run executor tests
3434
run: cargo test-sbf

.github/workflows/ci-solana-contract.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: cargo fmt --all -- --check
3434
if: success() || failure()
3535
- name: Clippy check
36-
run: cargo clippy --tests -- --deny warnings
36+
run: cargo clippy --all-targets -- --deny warnings
3737
if: success() || failure()
3838
- name: Build
3939
run: cargo-build-sbf

.github/workflows/ci-sui-contract.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v3
2020
- uses: actions-rust-lang/setup-rust-toolchain@v1
21+
with:
22+
rustflags: ""
2123
- uses: Swatinem/rust-cache@v2
22-
- run: |
23-
# This anchor version doesn't build with newer Rust
24+
- name: install sui
25+
run: |
26+
# This version doesn't build with newer Rust
2427
cargo +1.79.0 install -f sui --locked \
2528
--git https://github.com/MystenLabs/sui.git \
2629
--rev 041c5f2bae2fe52079e44b70514333532d69f4e6

governance/remote_executor/cli/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn parse_chain(chain: &str) -> Result<u16, String> {
2626
.iter()
2727
.find(|&&(name, _)| name == chain)
2828
.map(|&(_, id)| id)
29-
.ok_or_else(|| format!("Unsupported chain: {}", chain))
29+
.ok_or_else(|| format!("Unsupported chain: {chain}"))
3030
}
3131

3232
#[derive(Subcommand, Debug)]

governance/remote_executor/cli/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![deny(warnings)]
2-
31
use {
42
serde_wormhole::RawMessage,
53
wormhole_sdk::vaa::{Body, Header, Vaa},
@@ -250,11 +248,11 @@ pub fn process_transaction(
250248

251249
// Check if simulation was successful
252250
if let Some(err) = simulation_result.value.err {
253-
println!("Transaction simulation failed: {:?}", err);
251+
println!("Transaction simulation failed: {err:?}");
254252
if let Some(logs) = simulation_result.value.logs {
255253
println!("Simulation logs:");
256254
for (i, log) in logs.iter().enumerate() {
257-
println!(" {}: {}", i, log);
255+
println!(" {i}: {log}");
258256
}
259257
}
260258
return Err(anyhow::anyhow!("Transaction simulation failed"));

governance/remote_executor/programs/remote-executor/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![deny(warnings)]
21
#![allow(clippy::result_unit_err)]
32
#![allow(clippy::result_large_err)]
43
#![allow(unexpected_cfgs)]

governance/remote_executor/programs/remote-executor/src/tests/executor_simulator.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,9 @@ impl From<ExecutorError> for TransactionError {
338338
fn from(val: ExecutorError) -> Self {
339339
TransactionError::InstructionError(
340340
0,
341-
InstructionError::try_from(u64::from(ProgramError::from(
341+
InstructionError::from(u64::from(ProgramError::from(
342342
anchor_lang::prelude::Error::from(val),
343-
)))
344-
.unwrap(),
343+
))),
345344
)
346345
}
347346
}

0 commit comments

Comments
 (0)