Skip to content

Commit

Permalink
Second instance of vec! with parenthesis.
Browse files Browse the repository at this point in the history
  • Loading branch information
TDecking authored Aug 30, 2023
1 parent 6eb7a46 commit 1f8b204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/unit_return_expecting_ord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 1f8b204

Please sign in to comment.