[Clippy] Swap lines_filter_map_ok to use a diagnostic item instead of path
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user