Skip to content

fix: Resolve cargo fmt formatting errors and rustfmt config deprecations#203

Merged
LyeZinho merged 1 commit intomainfrom
feature/M1.2.4-flatbuffers-serialization
Apr 17, 2026
Merged

fix: Resolve cargo fmt formatting errors and rustfmt config deprecations#203
LyeZinho merged 1 commit intomainfrom
feature/M1.2.4-flatbuffers-serialization

Conversation

@LyeZinho
Copy link
Copy Markdown
Member

Summary

  • Remove unstable rustfmt options that are only available in nightly Rust
  • Replace deprecated fn_args_layout with fn_params_layout
  • Fix code formatting (trailing commas in match arms, alphabetical module ordering)
  • Verify with cargo fmt, clippy, and tests - all pass cleanly

Changes

  • .rustfmt.toml: Removed unstable/deprecated options (comment_width, wrap_comments, fn_single_line, struct_* settings, space_* settings)
  • crates/mimi-cli/src/main.rs: Add trailing commas to match arms
  • crates/mimi-core/src/lib.rs: Reorder modules alphabetically (config, error, message)

Verification

  • ✅ cargo fmt --check passes
  • ✅ cargo clippy passes
  • ✅ cargo build succeeds
  • ✅ cargo test passes (5/5 tests)

- Remove unstable rustfmt options (comment_width, wrap_comments, fn_single_line, space_* settings, struct_* settings)
- Replace deprecated fn_args_layout with fn_params_layout
- Add trailing commas to match arms in mimi-cli/main.rs
- Reorder modules alphabetically in mimi-core/lib.rs
- Verify with 'cargo fmt --check' passes cleanly
@LyeZinho LyeZinho merged commit 14a52dd into main Apr 17, 2026
6 checks passed
@LyeZinho LyeZinho deleted the feature/M1.2.4-flatbuffers-serialization branch April 17, 2026 16:41
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