Correct since attribute for feature
This commit is contained in:
@@ -1058,7 +1058,7 @@ impl Metadata {
|
|||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "is_symlink", since = "1.57.0")]
|
#[stable(feature = "is_symlink", since = "1.58.0")]
|
||||||
pub fn is_symlink(&self) -> bool {
|
pub fn is_symlink(&self) -> bool {
|
||||||
self.file_type().is_symlink()
|
self.file_type().is_symlink()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2817,7 +2817,7 @@ impl Path {
|
|||||||
/// check errors, call [`fs::symlink_metadata`] and handle its [`Result`]. Then call
|
/// check errors, call [`fs::symlink_metadata`] and handle its [`Result`]. Then call
|
||||||
/// [`fs::Metadata::is_symlink`] if it was [`Ok`].
|
/// [`fs::Metadata::is_symlink`] if it was [`Ok`].
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[stable(feature = "is_symlink", since = "1.57.0")]
|
#[stable(feature = "is_symlink", since = "1.58.0")]
|
||||||
pub fn is_symlink(&self) -> bool {
|
pub fn is_symlink(&self) -> bool {
|
||||||
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
|
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user