Skip to content

Commit 409b932

Browse files
authored
style: Remove needless borrow (#1122)
`cargo clippy` reports: ``` warning: the borrowed expression implements the required traits --> protobuf/build.rs:143:14 | 143 | ...rg(&format!("-DCMAKE_INSTALL_PREFIX={}", prefix_dir.display(... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `format!("-DCMAKE_INSTALL_PREFIX={}", prefix_dir.display())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args = note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default ```
1 parent 7670f42 commit 409b932

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99

1010

1111
env:
12-
PROTOC_VERSION: 3.20.3
13-
clippy_rust_version: 1.79
12+
PROTOC_VERSION: '3.20.3'
13+
clippy_rust_version: '1.79'
1414

1515
jobs:
1616
# Depends on all actions that are required for a "successful" CI run.

protobuf/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn install_conformance_test_runner(
122122
.arg("-GNinja")
123123
.arg(src_dir.join("cmake"))
124124
.arg("-DCMAKE_BUILD_TYPE=DEBUG")
125-
.arg(&format!("-DCMAKE_INSTALL_PREFIX={}", prefix_dir.display()))
125+
.arg(format!("-DCMAKE_INSTALL_PREFIX={}", prefix_dir.display()))
126126
.arg("-Dprotobuf_BUILD_CONFORMANCE=ON")
127127
.arg("-Dprotobuf_BUILD_TESTS=OFF")
128128
.current_dir(build_dir)

0 commit comments

Comments
 (0)