diff options
| author | GnomedDev <david2005thomas@gmail.com> | 2024-09-18 19:36:12 +0100 |
|---|---|---|
| committer | GnomedDev <david2005thomas@gmail.com> | 2024-09-19 08:26:41 +0100 |
| commit | 3ebff28f80cbbe5b51dd3d0edf8e5d0a8db1233f (patch) | |
| tree | a4b9584f1436a0d9e351668ff6744ebe4906fe74 /library | |
| parent | a786be5d0657a675ed6ddd5179ec66688e801610 (diff) | |
| download | rust-3ebff28f80cbbe5b51dd3d0edf8e5d0a8db1233f.tar.gz rust-3ebff28f80cbbe5b51dd3d0edf8e5d0a8db1233f.zip | |
[Clippy] Swap `lines_filter_map_ok` to use a diagnostic item instead of path
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/result.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/result.rs b/library/core/src/result.rs index 02f6f783b51..9edd58259ba 100644 --- a/library/core/src/result.rs +++ b/library/core/src/result.rs @@ -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), |
