about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-06 17:45:32 -0700
committerGitHub <noreply@github.com>2020-07-06 17:45:32 -0700
commit86f8c5350f172efd5fb98d83c4fb51900fd4abe6 (patch)
treec433dcf1f163d8a185d8f52521df3301e417492e /src/libstd/sys
parent3199aeb6546add874f48bc89daa3fbcca8f74417 (diff)
parent6196eaa0b1ca4e7857d8d62817aebf3b03216a57 (diff)
downloadrust-86f8c5350f172efd5fb98d83c4fb51900fd4abe6.tar.gz
rust-86f8c5350f172efd5fb98d83c4fb51900fd4abe6.zip
Rollup merge of #74074 - sunfishcode:windows-openoptionsext-return-type, r=LukasKalbertodt
Fix the return type of Windows' `OpenOptionsExt::security_qos_flags`.

This adjusts the return type of Windows' `OpenOptionsExt::security_qos_flags`
to be consistent with the other functions in the trait.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/windows/ext/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/ext/fs.rs b/src/libstd/sys/windows/ext/fs.rs
index f85120d170f..81b2bf99872 100644
--- a/src/libstd/sys/windows/ext/fs.rs
+++ b/src/libstd/sys/windows/ext/fs.rs
@@ -259,7 +259,7 @@ pub trait OpenOptionsExt {
     /// [Impersonation Levels]:
     ///     https://docs.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level
     #[stable(feature = "open_options_ext", since = "1.10.0")]
-    fn security_qos_flags(&mut self, flags: u32) -> &mut OpenOptions;
+    fn security_qos_flags(&mut self, flags: u32) -> &mut Self;
 }
 
 #[stable(feature = "open_options_ext", since = "1.10.0")]