9074da0bd7
Include async functions in the len_without_is_empty fixes #7232 Changes done to the functionality: Allowing different error types for the functions was disallowed. So the following was linted before but is not after this change ``` impl Foo { pub len(&self) -> Result<usize, Error1> { todo!(); } pub is_empty(&self) -> Result<bool, Error2> { todo!(); } } ``` --- changelog: Enhancement: [`len_without_is_empty`]: Now also detects `async` functions [#10359](https://github.com/rust-lang/rust-clippy/pull/10359) <!-- changelog_checked -->