Skip to content

Commit 90afecb

Browse files
committed
Thanks clippy
This removes a call to `to_string()` that is no longer necessary: warning: `to_string` applied to a type that implements `Display` in `trace!` args --> src/command/release/manifest.rs:568:52 | 568 | ... current_version_req.to_string() | ^^^^^^^^^^^^ help: remove this | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args = note: `#[warn(clippy::to_string_in_format_args)]` on by default Because `cargo clippy` is run on CI with `--allow deprecated`, this is enough to make it pass on CI. However, running `cargo clippy` without `--allow deprecated` also complains about the use of the deprecated type alias `winnow::PResult`. That other warning is also new since the immediately preceding run of `cargo update`. This commit does not fix that warning.
1 parent fe4de40 commit 90afecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/release/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ fn set_version_and_update_package_dependency(
565565
dep_type,
566566
name_to_find,
567567
new_version,
568-
current_version_req.to_string()
568+
current_version_req
569569
);
570570
}
571571
*current_version_req = toml_edit::Value::from(new_version.as_str());

0 commit comments

Comments
 (0)