diff options
| author | GnomedDev <david2005thomas@gmail.com> | 2024-09-18 21:21:17 +0100 |
|---|---|---|
| committer | GnomedDev <david2005thomas@gmail.com> | 2024-09-19 13:13:20 +0100 |
| commit | afe79079144076240a4eb7db70b733ec49a787f7 (patch) | |
| tree | 56f4d34b82cb44635275a7aaefcc3565c540278e /library/std/src/ffi/os_str.rs | |
| parent | c89108202933fcdd6631a04b16bfebff3b9896d1 (diff) | |
| download | rust-afe79079144076240a4eb7db70b733ec49a787f7.tar.gz rust-afe79079144076240a4eb7db70b733ec49a787f7.zip | |
[Clippy] Swap `redundant_clone` 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 8e1147338b0..0f905803bb8 100644 --- a/library/std/src/ffi/os_str.rs +++ b/library/std/src/ffi/os_str.rs @@ -919,6 +919,7 @@ impl OsStr { #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] + #[cfg_attr(not(test), rustc_diagnostic_item = "os_str_to_os_string")] pub fn to_os_string(&self) -> OsString { OsString { inner: self.inner.to_owned() } } |
