about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2020-07-03 12:05:59 -0700
committerDan Gohman <sunfish@mozilla.com>2020-07-05 16:04:27 -0700
commit6196eaa0b1ca4e7857d8d62817aebf3b03216a57 (patch)
treeca29354b49fffb4df1bfc4e71f729f5d45b502c1 /src/libstd
parent50fc24d8a172a853b5dfe40702d6550e3b8562ba (diff)
downloadrust-6196eaa0b1ca4e7857d8d62817aebf3b03216a57.tar.gz
rust-6196eaa0b1ca4e7857d8d62817aebf3b03216a57.zip
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')
-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")]