[Clippy] Swap option_as_ref_deref
to use diagnostic items instead of paths
This commit is contained in:
parent
3ebff28f80
commit
5e4716888a
8 changed files with 26 additions and 19 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue