Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: simplify string formatting for readability #4001

Conversation

hamirmahal
Copy link
Contributor

Closes #4000

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Copy link
Contributor Author

@hamirmahal hamirmahal left a comment

Choose a reason for hiding this comment

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

This shouldn't cause any user-facing changes.

The goal here is to improve code readability and developer productivity.

@madsmtm
Copy link
Member

madsmtm commented Nov 20, 2024

It sounds like you're using an automated tool to find these? From a quick look I found at least the similar tembo-io/pgmq#341, stalwartlabs/mail-server#909, mullvad/pfctl-rs#119 and amodm/webbrowser-rs#91.

It would be really nice if more context was given (that these were found in an automated fashion, if so), otherwise it feels disingenuous?

@hamirmahal
Copy link
Contributor Author

Oh, I found these with clippy.

@madsmtm
Copy link
Member

madsmtm commented Nov 21, 2024

Ah, makes sense. Would you be up for adding the specific lints to lib.rs, then?

@hamirmahal
Copy link
Contributor Author

Sure! I'll take a look at that right now.

@hamirmahal hamirmahal force-pushed the style/simplify-string-formatting-for-readability branch from 0bc07b8 to ed03405 Compare November 22, 2024 19:58
src/lib.rs Outdated Show resolved Hide resolved
@hamirmahal hamirmahal force-pushed the style/simplify-string-formatting-for-readability branch from ed03405 to 1ef558f Compare November 22, 2024 20:32
@hamirmahal hamirmahal force-pushed the style/simplify-string-formatting-for-readability branch from 1ef558f to f72f9a2 Compare November 22, 2024 20:33
Copy link
Member

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Thanks

@madsmtm madsmtm merged commit fc6cf89 into rust-windowing:master Nov 22, 2024
56 of 58 checks passed
@hamirmahal hamirmahal deleted the style/simplify-string-formatting-for-readability branch November 22, 2024 21:20
@hamirmahal
Copy link
Contributor Author

You're welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Some statements can be simplified for readability
2 participants