Correct since attribute for feature
This commit is contained in:
parent
4a66a704b2
commit
8fafb77af9
2 changed files with 2 additions and 2 deletions
|
@ -1058,7 +1058,7 @@ impl Metadata {
|
|||
/// }
|
||||
/// ```
|
||||
#[must_use]
|
||||
#[stable(feature = "is_symlink", since = "1.57.0")]
|
||||
#[stable(feature = "is_symlink", since = "1.58.0")]
|
||||
pub fn is_symlink(&self) -> bool {
|
||||
self.file_type().is_symlink()
|
||||
}
|
||||
|
|
|
@ -2817,7 +2817,7 @@ impl Path {
|
|||
/// check errors, call [`fs::symlink_metadata`] and handle its [`Result`]. Then call
|
||||
/// [`fs::Metadata::is_symlink`] if it was [`Ok`].
|
||||
#[must_use]
|
||||
#[stable(feature = "is_symlink", since = "1.57.0")]
|
||||
#[stable(feature = "is_symlink", since = "1.58.0")]
|
||||
pub fn is_symlink(&self) -> bool {
|
||||
fs::symlink_metadata(self).map(|m| m.is_symlink()).unwrap_or(false)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue