Skip to content

Conversation

@pellico
Copy link
Contributor

@pellico pellico commented Jul 8, 2025

Fixed clippy warnings
--- please keep the agreement as part of the PR text ---
By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/svd2pac/blob/main/CONTRIBUTING.md
CONTRIBUTING.md also tells you what to expect in the PR process.

@pellico pellico linked an issue Jul 8, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

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 modernizes formatting calls to address Clippy warnings by leveraging Rust’s inline named interpolation (Rust 1.88).

  • Replaced positional format! arguments with inline {var} syntax across error messages, template filters, and file paths.
  • Updated execute_template, peripheral module generators, and build script to use inline formatting in panics and logging.
  • Aligned environment variable printing in build.rs to inline formatting.

Reviewed Changes

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

File Description
src/rust_gen/xml2ir.rs Updated multiple format! calls for error messages to inline variables.
src/rust_gen.rs Replaced positional formatting in filters and template writers with inline interpolation.
build.rs Adjusted println! for AURIX_TOOLCHAIN to inline formatting.

@andreasWallnerIFX andreasWallnerIFX merged commit 55e3818 into main Aug 19, 2025
9 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.

Fix warning clippy distributed with Rust 1.88

2 participants