Skip to content

Commit

Permalink
[Clippy] Swap lines_filter_map_ok to use a diagnostic item instead …
Browse files Browse the repository at this point in the history
…of path
  • Loading branch information
GnomedDev committed Sep 19, 2024
1 parent 116e527 commit b8c0c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b8c0c3b

Please sign in to comment.