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

fix: Improve string formatting for better readability Update network.rs #325

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mdqst
Copy link

@mdqst mdqst commented Dec 13, 2024

Describe your changes.

In the current implementation, the formatting for strings in fmt::Display is done using the following syntax:

write!(f, "{hostname}{port}")

While this syntax works correctly, it can be improved for better readability and clarity. The revised approach uses a more conventional and straightforward method of formatting:

write!(f, "{}{}", hostname, port)

This change doesn't affect functionality but makes the code easier to read and maintain, following a more common formatting style in Rust.

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