Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
neithanmo committed Jun 27, 2024
1 parent 95d1fb1 commit 7a6600b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: clippy
run: |
cd ./app/rust
cargo clippy --all-targets
cargo clippy --all-targets features=clippy
build_ledger:
needs: configure
Expand Down
3 changes: 3 additions & 0 deletions app/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ resolver = "2"
name = "rslib"
crate-type = ["staticlib"]

[features]
clippy = []

[dependencies]
no-std-compat = { version = "0.4.1" }
numtoa = "0.2.4"
Expand Down
4 changes: 2 additions & 2 deletions app/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ mod zxformat;

fn debug(_msg: &str) {}

#[cfg(not(any(test, fuzzing, clippy)))]
#[cfg(not(any(test, fuzzing, feature = "clippy")))]
use core::panic::PanicInfo;

#[cfg(not(any(test, fuzzing, clippy)))]
#[cfg(not(any(test, fuzzing, feature = "clippy")))]
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
loop {}
Expand Down

0 comments on commit 7a6600b

Please sign in to comment.