1
Fork 0

[Clippy] Swap option_as_ref_deref to use diagnostic items instead of paths

This commit is contained in:
GnomedDev 2024-09-18 21:09:06 +01:00
parent 3ebff28f80
commit 5e4716888a
No known key found for this signature in database
GPG key ID: 9BF10F8372B254D1
8 changed files with 26 additions and 19 deletions

View file

@ -1226,6 +1226,7 @@ impl PathBuf {
/// let p = PathBuf::from("/test");
/// assert_eq!(Path::new("/test"), p.as_path());
/// ```
#[cfg_attr(not(test), rustc_diagnostic_item = "pathbuf_as_path")]
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
#[inline]