Second instance of vec! with parenthesis.

This commit is contained in:
Tobias Decking 2023-08-30 14:02:44 +02:00 committed by GitHub
parent 6eb7a46b88
commit 1f8b204775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"]