]> git.lizzy.rs Git - rust.git/commitdiff
Fix the return type of Windows' `OpenOptionsExt::security_qos_flags`.
authorDan Gohman <sunfish@mozilla.com>
Fri, 3 Jul 2020 19:05:59 +0000 (12:05 -0700)
committerDan Gohman <sunfish@mozilla.com>
Sun, 5 Jul 2020 23:04:27 +0000 (16:04 -0700)
This adjusts the return type of Windows' `OpenOptionsExt::security_qos_flags`
to be consistent with the other functions in the trait.

src/libstd/sys/windows/ext/fs.rs

index f85120d170f737269f11ffdf445acf4fc7e0d608..81b2bf998720022c3765ce605c60b654244b56fb 100644 (file)
@@ -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")]