Skip to content

transaction-error: Fix warning for bpf build, feature gating#3742

Merged
mergify[bot] merged 1 commit into
anza-xyz:masterfrom
joncinque:txerrfix
Nov 25, 2024
Merged

transaction-error: Fix warning for bpf build, feature gating#3742
mergify[bot] merged 1 commit into
anza-xyz:masterfrom
joncinque:txerrfix

Conversation

@joncinque
Copy link
Copy Markdown

Problem

There's a warning when building solana-transaction-error in bpf:

warning: unused import: `std::io`
 --> sdk/transaction-error/src/lib.rs:8:93
  |
8 | ...or, solana_sanitize::SanitizeError, std::io,

This is because the part that uses std::io is gated on not(target_os = "solana").

Also, clippy is failing on this crate individually because the "serde" feature is not enabled on solana-instruction.

Summary of changes

Fix those two things.

#### Problem

There's a warning when building solana-transaction-error in bpf:

```
warning: unused import: `std::io`
 --> sdk/transaction-error/src/lib.rs:8:93
  |
8 | ...or, solana_sanitize::SanitizeError, std::io,
```

This is because the part that uses std::io is gated on `not(target_os =
"solana")`.

Also, clippy is failing on this crate individually because the "serde"
feature is not enabled on solana-instruction.

#### Summary of changes

Fix those two things.
@joncinque joncinque added the automerge automerge Merge this Pull Request automatically once CI passes label Nov 22, 2024
@mergify mergify Bot merged commit 657108c into anza-xyz:master Nov 25, 2024
@joncinque joncinque deleted the txerrfix branch November 25, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge automerge Merge this Pull Request automatically once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants