diff options
| author | GnomedDev <david2005thomas@gmail.com> | 2024-09-18 21:09:06 +0100 |
|---|---|---|
| committer | GnomedDev <david2005thomas@gmail.com> | 2024-09-19 13:13:19 +0100 |
| commit | 5e4716888a731cdd929bdbaf94eeb3e192f1eace (patch) | |
| tree | 6977e3dda2c063307f24241ad5136d7b8cb8a62b /library/std/src/ffi/os_str.rs | |
| parent | 3ebff28f80cbbe5b51dd3d0edf8e5d0a8db1233f (diff) | |
| download | rust-5e4716888a731cdd929bdbaf94eeb3e192f1eace.tar.gz rust-5e4716888a731cdd929bdbaf94eeb3e192f1eace.zip | |
[Clippy] Swap `option_as_ref_deref` to use diagnostic items instead of paths
Diffstat (limited to 'library/std/src/ffi/os_str.rs')
| -rw-r--r-- | library/std/src/ffi/os_str.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs index 99bea676e12..8e1147338b0 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -196,6 +196,7 @@ impl OsString { /// let os_str = OsStr::new("foo"); /// assert_eq!(os_string.as_os_str(), os_str); /// ``` + #[cfg_attr(not(test), rustc_diagnostic_item = "os_string_as_os_str")] #[stable(feature = "rust1", since = "1.0.0")] #[must_use] #[inline] |
