fix-rust-fmt

Fix Rust formatting issues to resolve failing rust-fmt CI jobs.

6.5k|4.0k|Updated Feb 6, 2020
One-click install
npx skills add https://github.com/ethereum-optimism/optimism --skill fix-rust-fmt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-rust-fmt
Source: https://github.com/ethereum-optimism/optimism/tree/main/.claude/skills/fix-rust-fmt
Command: npx skills add https://github.com/ethereum-optimism/optimism --skill fix-rust-fmt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically corrects Rust code formatting errors that cause the rust-fmt CI job to fail, ensuring code quality and CI pipeline stability.

Core Features & Use Cases

  • Automated Formatting: Applies necessary formatting changes to Rust code files.
  • CI Job Resolution: Directly addresses failures in the rust-fmt Continuous Integration checks.
  • Use Case: When a pull request fails due to Rust formatting errors, this Skill can be invoked to fix those errors and allow the PR to proceed.

Quick Start

Use the fix-rust-fmt skill to automatically fix Rust formatting issues in the repository.

Frequently Asked Questions about fix-rust-fmt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix Rust formatting issues failing my CI pipeline?

To fix Rust formatting issues failing your CI pipeline, you apply automated formatting changes that align with enforced rustfmt standards. This directly resolves `rust-fmt` Continuous Integration check failures, ensuring code quality and allowing your pull request to proceed.

Why does rust-fmt CI fail on my Rust codebase?

The `rust-fmt` CI job fails when Rust code does not adhere to specific formatting standards enforced by unstable rustfmt options. Correcting these formatting errors automatically applies the necessary changes to resolve the failing Continuous Integration checks.

Do I need mise to run rustfmt for CI formatting fixes?

Yes, you need `mise` to manage toolchain installations and execution environments when fixing Rust formatting issues. It ensures the correct toolchain is active to apply the specific formatting standards enforced by unstable rustfmt options.

How do I automatically format Rust code for unstable rustfmt options?

You can automatically format Rust code for unstable rustfmt options by applying necessary formatting changes across the codebase. This corrects formatting errors directly, resolving `rust-fmt` CI job failures and maintaining pipeline stability.

Can I use this automated formatting for Rust codebases outside the optimism monorepo?

Yes, this automated formatting applies to all Rust codebases requiring adherence to specific formatting standards enforced by unstable rustfmt options, not just the optimism monorepo. It corrects formatting errors to resolve failing `rust-fmt` CI jobs in any compatible repository.