mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
Second instance of vec!
with parenthesis.
This commit is contained in:
parent
6eb7a46b88
commit
1f8b204775
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ declare_clippy_lint! {
|
|||
///
|
||||
/// ### Example
|
||||
/// ```rust
|
||||
/// let mut twins = vec!((1, 1), (2, 2));
|
||||
/// let mut twins = vec![(1, 1), (2, 2)];
|
||||
/// twins.sort_by_key(|x| { x.1; });
|
||||
/// ```
|
||||
#[clippy::version = "1.47.0"]
|
||||
|
|
Loading…
Add table
Reference in a new issue