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 clippy warnings: useless use of format! #110

Merged
merged 1 commit into from
Jul 2, 2022
Merged

Fix clippy warnings: useless use of format! #110

merged 1 commit into from
Jul 2, 2022

Conversation

LingMan
Copy link
Contributor

@LingMan LingMan commented Jun 21, 2022

warning: useless use of `format!`
   --> src/pb.rs:358:32
    |
358 |             prefix = prefix + &format!("{}", self.message);
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `self.message.to_string()`
    |
    = note: `#[warn(clippy::useless_format)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

warning: useless use of `format!`
   --> src/pb.rs:440:23
    |
440 |         let mut out = format!("{}", s);
    |                       ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `s.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

warning: useless use of `format!`
   --> src/pb.rs:358:32
    |
358 |             prefix = prefix + &format!("{}", self.message);
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `self.message.to_string()`
    |
    = note: `#[warn(clippy::useless_format)]` on by default
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

warning: useless use of `format!`
   --> src/pb.rs:440:23
    |
440 |         let mut out = format!("{}", s);
    |                       ^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `s.to_string()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
@a8m a8m merged commit dd21b2e into a8m:master Jul 2, 2022
@LingMan LingMan deleted the useless_format branch July 2, 2022 16:30
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.

2 participants