Skip to content

Commit b8c0c3b

Browse files
committed
[Clippy] Swap lines_filter_map_ok to use a diagnostic item instead of path
1 parent 116e527 commit b8c0c3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/result.rs

+1
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ impl<T, E> Result<T, E> {
653653
/// ```
654654
#[inline]
655655
#[stable(feature = "rust1", since = "1.0.0")]
656+
#[cfg_attr(not(test), rustc_diagnostic_item = "result_ok_method")]
656657
pub fn ok(self) -> Option<T> {
657658
match self {
658659
Ok(x) => Some(x),

0 commit comments

Comments
 (0)