Rollup merge of #152232 - chenyukang:add-must-use-for-filetimes, r=Mark-Simulacrum
Add must_use for FileTimes Fixes rust-lang/rust#152231
This commit is contained in:
commit
eaa6766793
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