feat: add const_is_empty lint

This commit is contained in:
Samuel Tardieu 2024-02-19 23:30:17 +01:00
parent aa2c94e416
commit dbfbd0e77f
6 changed files with 252 additions and 1 deletions

View file

@ -350,6 +350,7 @@ pub(crate) static LINTS: &[&crate::LintInfo] = &[
crate::methods::CLONE_ON_COPY_INFO,
crate::methods::CLONE_ON_REF_PTR_INFO,
crate::methods::COLLAPSIBLE_STR_REPLACE_INFO,
crate::methods::CONST_IS_EMPTY_INFO,
crate::methods::DRAIN_COLLECT_INFO,
crate::methods::ERR_EXPECT_INFO,
crate::methods::EXPECT_FUN_CALL_INFO,