Merge commit '0cce3f643b
' into clippyup
This commit is contained in:
parent
5331fea875
commit
2b20f49841
283 changed files with 3436 additions and 3113 deletions
|
@ -19,14 +19,14 @@ pub struct UselessVec {
|
|||
}
|
||||
|
||||
declare_clippy_lint! {
|
||||
/// **What it does:** Checks for usage of `&vec![..]` when using `&[..]` would
|
||||
/// ### What it does
|
||||
/// Checks for usage of `&vec![..]` when using `&[..]` would
|
||||
/// be possible.
|
||||
///
|
||||
/// **Why is this bad?** This is less efficient.
|
||||
/// ### Why is this bad?
|
||||
/// This is less efficient.
|
||||
///
|
||||
/// **Known problems:** None.
|
||||
///
|
||||
/// **Example:**
|
||||
/// ### Example
|
||||
/// ```rust
|
||||
/// # fn foo(my_vec: &[u8]) {}
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue