File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ impl IoError {
353
353
/// operating system) between the call(s) for which errors are
354
354
/// being checked and the call of this function.
355
355
pub fn last_error ( ) -> IoError {
356
- IoError :: from_errno ( os:: errno ( ) as i32 , true )
356
+ IoError :: from_errno ( os:: errno ( ) , true )
357
357
}
358
358
}
359
359
Original file line number Diff line number Diff line change @@ -527,12 +527,12 @@ pub fn errno() -> i32 {
527
527
/// println!("{}", os::error_string(os::errno() as i32));
528
528
/// ```
529
529
pub fn error_string ( errnum : i32 ) -> String {
530
- return sys:: os:: error_string ( errnum as i32 ) ;
530
+ return sys:: os:: error_string ( errnum) ;
531
531
}
532
532
533
533
/// Get a string representing the platform-dependent last error
534
534
pub fn last_os_error ( ) -> String {
535
- error_string ( errno ( ) as i32 )
535
+ error_string ( errno ( ) )
536
536
}
537
537
538
538
/// Sets the process exit code
You can’t perform that action at this time.
0 commit comments