diff options
| author | Florian Brucker <mail@florianbrucker.de> | 2023-12-17 18:46:49 +0100 |
|---|---|---|
| committer | Florian Brucker <mail@florianbrucker.de> | 2023-12-31 13:30:36 +0100 |
| commit | fe35e08e9f96f9c829add20351b2fbf28faac324 (patch) | |
| tree | b1006c26e78de7337611c4e418cdc73a01da233f /clippy_lints/src/declared_lints.rs | |
| parent | eca393239515c0a72838eec9477e6689809911c4 (diff) | |
| download | rust-fe35e08e9f96f9c829add20351b2fbf28faac324.tar.gz rust-fe35e08e9f96f9c829add20351b2fbf28faac324.zip | |
8733: Suggest `str.lines` when splitting at hard-coded newlines
Adds a new `splitting_strings_at_newlines` lint that suggests to use `str.lines` instead of splitting a trimmed string at hard-coded newlines.
Diffstat (limited to 'clippy_lints/src/declared_lints.rs')
| -rw-r--r-- | clippy_lints/src/declared_lints.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clippy_lints/src/declared_lints.rs b/clippy_lints/src/declared_lints.rs index 9ab38dab1e5..02543ae912a 100644 --- a/clippy_lints/src/declared_lints.rs +++ b/clippy_lints/src/declared_lints.rs @@ -435,6 +435,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[ crate::methods::STABLE_SORT_PRIMITIVE_INFO, crate::methods::STRING_EXTEND_CHARS_INFO, crate::methods::STRING_LIT_CHARS_ANY_INFO, + crate::methods::STR_SPLIT_AT_NEWLINE_INFO, crate::methods::SUSPICIOUS_COMMAND_ARG_SPACE_INFO, crate::methods::SUSPICIOUS_MAP_INFO, crate::methods::SUSPICIOUS_SPLITN_INFO, |
