Skip to content

Fix clippy failure on main: drop unused soroban_sdk imports - #25

Merged
Meshmulla merged 2 commits into
mainfrom
fix/main-clippy-unused-imports
Aug 17, 2026
Merged

Fix clippy failure on main: drop unused soroban_sdk imports#25
Meshmulla merged 2 commits into
mainfrom
fix/main-clippy-unused-imports

Conversation

@Meshmulla

Copy link
Copy Markdown
Contributor

Problem

main's CI is currently red: the Format & lint job fails at clippy --all-targets --all-features -- -D warnings. Build, test, and fuzz all pass — this is the only breakage, and it blocks every new PR from showing green.

Cause

The recent event-standardization work moved event emission to fully-qualified call sites (soroban_sdk::symbol_short!(...), soroban_sdk::Symbol::new(...)), leaving two now-unused imports:

  • escrow_contract/src/lib.rs — unused symbol_short, Symbol
  • soroban/src/operator_rotation.rs — unused symbol_short

Under -D warnings, unused_imports is an error.

Fix

Remove only those unused imports; the fully-qualified call sites are untouched, so behavior is unchanged. Minimal diff: 2 files, +2/-5. Restores green CI on main.

The event-standardization change switched to fully-qualified
soroban_sdk::symbol_short! / soroban_sdk::Symbol::new call sites, leaving
the top-level symbol_short and Symbol imports unused. Under the CI's
clippy -D warnings gate this fails the Format & lint job on main. Drop
the now-unused imports; the fully-qualified call sites are unchanged.
Same fully-qualified-call cleanup as the other modules: governance
emits events via soroban_sdk::symbol_short!(...), leaving the top-level
symbol_short import unused and failing clippy -D warnings once the
earlier unused imports were removed.
@Meshmulla
Meshmulla merged commit afbf77d into main Aug 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant