diff options
| author | Philipp Krones <hello@philkrones.com> | 2022-09-28 14:27:32 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-09-28 14:27:32 +0200 |
| commit | bbcde666853d11f6f5f3bdc660f018cf7fc8cd71 (patch) | |
| tree | 28df6eeea41c8e772bb65a172962f74282db1de1 /clippy_lints/src/slow_vector_initialization.rs | |
| parent | e5ce6d18df883f593e72f7958bebdc3ebcdbe85e (diff) | |
| parent | 0f6932a1f7623663e50922225ea304340949c051 (diff) | |
| download | rust-bbcde666853d11f6f5f3bdc660f018cf7fc8cd71.tar.gz rust-bbcde666853d11f6f5f3bdc660f018cf7fc8cd71.zip | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'clippy_lints/src/slow_vector_initialization.rs')
| -rw-r--r-- | clippy_lints/src/slow_vector_initialization.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/slow_vector_initialization.rs b/clippy_lints/src/slow_vector_initialization.rs index c07aa00a127..e57ab8cd7a3 100644 --- a/clippy_lints/src/slow_vector_initialization.rs +++ b/clippy_lints/src/slow_vector_initialization.rs @@ -174,7 +174,7 @@ impl SlowVectorInit { diag.span_suggestion( vec_alloc.allocation_expr.span, "consider replace allocation with", - format!("vec![0; {}]", len_expr), + format!("vec![0; {len_expr}]"), Applicability::Unspecified, ); }); |
