Skip to content

Fixed clippy warning uninlined_format_args#51

Merged
eva-cosma merged 1 commit into
WyliodrinEmbeddedIoT:mainfrom
AliwiWalid:main
Jul 3, 2025
Merged

Fixed clippy warning uninlined_format_args#51
eva-cosma merged 1 commit into
WyliodrinEmbeddedIoT:mainfrom
AliwiWalid:main

Conversation

@AliwiWalid

@AliwiWalid AliwiWalid commented Jul 2, 2025

Copy link
Copy Markdown

Pull Request Overview

This pull request fixes clippy's uninlined_format_args by removing the #[allow(clippy:uninlined_format_args)] directives from the tockloader-cli/src/display.rs file.

TODO or Help Wanted

N/A

Checks

Using Rust tooling

  • Ran cargo fmt
  • Ran cargo clippy
  • Ran cargo test
  • Ran cargo build

GitHub Issue

This pull request closes #47

Comment thread tockloader-cli/src/display.rs Outdated

@eva-cosma eva-cosma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Well done! I have one change request. Other than that, make sure you follow the conventional commits format, and I suggest you merge your commits into a single one. You would do this using git rebase, but be careful when using it!

@eva-cosma

eva-cosma commented Jul 3, 2025

Copy link
Copy Markdown
Collaborator

Also I took the liberty to change your PR message to link the issue (you pasted the entire link to the project's view off the issue instead of just refereincing the number (aka <huge link> to #47))

Re-request my review when it is ready

@eva-cosma

Copy link
Copy Markdown
Collaborator

The commit message is unclear. You merged all commit messages into one, instead of creating a new one that explains very briefly what this pr is about (fix: ....)

- Used named arguments within the format strings instead of passing them as separate arguments.
- Declared constants for ANSI escape codes which i used throughout the entire code to make it more readable.
- Added RESET after each color or each line.
@AliwiWalid

Copy link
Copy Markdown
Author

@george-cosma should be good now i hope

@eva-cosma
eva-cosma merged commit f12c859 into WyliodrinEmbeddedIoT:main Jul 3, 2025
5 checks passed
@eva-cosma

Copy link
Copy Markdown
Collaborator

Also, I didn't ask but at this point it's a bit late since i merged, did you test out the code on hardware to see if it's all okay @AliwiWalid? :))

@AliwiWalid

Copy link
Copy Markdown
Author

Um well apologies but i kind of forgot, ill do that now regardless but hopefully shouldnt be any issues. Live and learn!

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 clippy warning: uninlined_format_args

2 participants