[Clippy] Swap lines_filter_map_ok to use a diagnostic item instead … · qinheping/verify-rust-std@b8c0c3b (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit b8c0c3b

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

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -653,6 +653,7 @@ impl<T, E> Result<T, E> {
653 653 /// ```
654 654 #[inline]
655 655 #[stable(feature = "rust1", since = "1.0.0")]
656 +#[cfg_attr(not(test), rustc_diagnostic_item = "result_ok_method")]
656 657 pub fn ok(self) -> Option<T> {
657 658 match self {
658 659 Ok(x) => Some(x),