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:
Shoyu Vanilla (Flint) 2026-01-02 02:16:10 +00:00 committed by GitHub
commit e34c26580f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
///