File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ fn is_variable_not_found_error(err: &io::Error) -> bool {
3838
3939#[ cfg( target_os = "windows" ) ]
4040fn is_variable_not_found_error ( err : & io:: Error ) -> bool {
41- err. kind ( ) == io :: ErrorKind :: Other && err . raw_os_error ( ) == Some ( 203 )
41+ err. raw_os_error ( ) == Some ( 203 )
4242}
4343
4444#[ cfg( not( target_os = "windows" ) ) ]
@@ -49,7 +49,7 @@ fn is_buffer_too_small_error(_err: &io::Error) -> bool {
4949
5050#[ cfg( target_os = "windows" ) ]
5151fn is_buffer_too_small_error ( err : & io:: Error ) -> bool {
52- err. kind ( ) == io :: ErrorKind :: Other && err . raw_os_error ( ) == Some ( 122 )
52+ err. raw_os_error ( ) == Some ( 122 )
5353}
5454
5555#[ cfg( not( target_os = "windows" ) ) ]
@@ -59,7 +59,7 @@ fn is_permission_denied_error(err: &io::Error) -> bool {
5959
6060#[ cfg( target_os = "windows" ) ]
6161fn is_permission_denied_error ( err : & io:: Error ) -> bool {
62- err. kind ( ) == io :: ErrorKind :: Other && err . raw_os_error ( ) == Some ( 1314 )
62+ err. raw_os_error ( ) == Some ( 1314 )
6363}
6464
6565impl Error {
You can’t perform that action at this time.
0 commit comments