Merge pull request #21361 from A4-Tacks/sugg-name-prefix-try-into
Add useless prefix `try_into_` for suggest_name
This commit is contained in:
commit
e34c26580f
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ const SEQUENCE_TYPES: &[&str] = &["Vec", "VecDeque", "LinkedList"];
|
|||
/// `vec.as_slice()` -> `slice`
|
||||
/// `args.into_config()` -> `config`
|
||||
/// `bytes.to_vec()` -> `vec`
|
||||
const USELESS_METHOD_PREFIXES: &[&str] = &["into_", "as_", "to_"];
|
||||
const USELESS_METHOD_PREFIXES: &[&str] = &["try_into_", "into_", "as_", "to_"];
|
||||
|
||||
/// Useless methods that are stripped from expression
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue