[Clippy] Swap lines_filter_map_ok to use a diagnostic item instead of path

This commit is contained in:
GnomedDev
2024-09-18 19:36:12 +01:00
parent a786be5d06
commit 3ebff28f80
4 changed files with 4 additions and 3 deletions

View File

@@ -653,6 +653,7 @@ impl<T, E> Result<T, E> {
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "result_ok_method")]
pub fn ok(self) -> Option<T> {
match self {
Ok(x) => Some(x),