add must_use for FileTimes
This commit is contained in:
parent
44e34e1ac6
commit
d72eac8465
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ pub struct OpenOptions(fs_imp::OpenOptions);
|
|||
/// Representation of the various timestamps on a file.
|
||||
#[derive(Copy, Clone, Debug, Default)]
|
||||
#[stable(feature = "file_set_times", since = "1.75.0")]
|
||||
#[must_use = "must be applied to a file via `File::set_times` to have any effect"]
|
||||
pub struct FileTimes(fs_imp::FileTimes);
|
||||
|
||||
/// Representation of the various permissions on a file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue