Skip to content

fix: resolve clippy warnings and formatting issues#33

Merged
lukekim merged 1 commit into
spiceai-0.9.0from
spiceai-0.9.0-fixes
Mar 24, 2026
Merged

fix: resolve clippy warnings and formatting issues#33
lukekim merged 1 commit into
spiceai-0.9.0from
spiceai-0.9.0-fixes

Conversation

@lukekim

@lukekim lukekim commented Mar 24, 2026

Copy link
Copy Markdown

Fix clippy warnings and formatting issues for PR #32:

  • Update BehaviorVersion::v2025_01_17 to ::latest() to fix deprecation warning
  • Add missing limit field to FileScanTask test constructors in reader.rs
  • Apply cargo fmt formatting fixes in row_delta.rs

- Update BehaviorVersion::v2025_01_17 to ::latest() to fix deprecation warning
- Add missing limit field to FileScanTask test constructors in reader.rs
- Apply cargo fmt formatting fixes in row_delta.rs
Copilot AI review requested due to automatic review settings March 24, 2026 20:26
@lukekim lukekim merged commit 73f50f7 into spiceai-0.9.0 Mar 24, 2026
19 of 22 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Rust clippy warnings and formatting issues introduced during the iceberg-rust v0.9.0 merge work (PR #32), focusing on AWS SDK behavior version usage, test struct initialization correctness, and rustfmt cleanup.

Changes:

  • Switch AWS SDK config initialization to BehaviorVersion::latest() to resolve deprecation warnings.
  • Update FileScanTask test constructors to include the new limit field.
  • Apply cargo fmt formatting adjustments in row_delta transaction tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
crates/iceberg/src/transaction/row_delta.rs Rustfmt-driven formatting changes in tests (but currently introduces a compile error due to a missing semicolon).
crates/iceberg/src/arrow/reader.rs Adds missing limit: None field in FileScanTask test constructors.
crates/catalog/rest/src/middleware/sigv4.rs Updates AWS SDK behavior version to BehaviorVersion::latest() to avoid deprecation warnings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +270 to +272
assert!(matches!((&updates[0], &updates[1]),
(TableUpdate::AddSnapshot { snapshot }, TableUpdate::SetSnapshotRef { reference, ref_name })
if snapshot.snapshot_id() == reference.snapshot_id && ref_name == MAIN_BRANCH)
);
if snapshot.snapshot_id() == reference.snapshot_id && ref_name == MAIN_BRANCH));

Copilot AI Mar 24, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assert!(matches!(...)) statement is missing a trailing semicolon, which will fail to compile because there are subsequent statements in the block. Add ; after the closing )).

Copilot uses AI. Check for mistakes.
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.

2 participants