diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-07-31 23:53:53 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-07-31 23:53:53 +0200 |
| commit | b0e64a9c09773e5ac908d89bff3db95d35491308 (patch) | |
| tree | 81571ddba0b66bcc5c6d658fc3adcc7032b1810b /src | |
| parent | f54263af58f5ae062d382c40c28ed8d9fa9c6935 (diff) | |
| download | rust-b0e64a9c09773e5ac908d89bff3db95d35491308.tar.gz rust-b0e64a9c09773e5ac908d89bff3db95d35491308.zip | |
Merge commit '5436dba826191964ac1d0dab534b7eb6d4c878f6' into clippyup
Diffstat (limited to 'src')
| -rw-r--r-- | src/driver.rs | 2 | ||||
| -rw-r--r-- | src/main.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/driver.rs b/src/driver.rs index ee17feed77a..1d89477dcc1 100644 --- a/src/driver.rs +++ b/src/driver.rs @@ -192,7 +192,7 @@ You can use tool lints to allow or deny lints from your code, eg.: ); } -const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/new"; +const BUG_REPORT_URL: &str = "https://github.com/rust-lang/rust-clippy/issues/new?template=ice.yml"; #[allow(clippy::too_many_lines)] pub fn main() { diff --git a/src/main.rs b/src/main.rs index cdc85cb33ca..26b655076cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,8 +132,7 @@ impl ClippyCmd { let clippy_args: String = self .clippy_args .iter() - .map(|arg| format!("{arg}__CLIPPY_HACKERY__")) - .collect(); + .fold(String::new(), |s, arg| s + arg + "__CLIPPY_HACKERY__"); // Currently, `CLIPPY_TERMINAL_WIDTH` is used only to format "unknown field" error messages. let terminal_width = termize::dimensions().map_or(0, |(w, _)| w); |
