File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ fn os_err_desc(_errno: i32, _buf: &mut [u8]) -> Option<&str> {
76
76
}
77
77
78
78
impl fmt:: Debug for Error {
79
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
79
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
80
80
let mut dbg = f. debug_struct ( "Error" ) ;
81
81
if let Some ( errno) = self . raw_os_error ( ) {
82
82
dbg. field ( "os_error" , & errno) ;
@@ -95,7 +95,7 @@ impl fmt::Debug for Error {
95
95
}
96
96
97
97
impl fmt:: Display for Error {
98
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
98
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
99
99
if let Some ( errno) = self . raw_os_error ( ) {
100
100
let mut buf = [ 0u8 ; 128 ] ;
101
101
match os_err_desc ( errno, & mut buf) {
Original file line number Diff line number Diff line change 126
126
) ]
127
127
#![ no_std]
128
128
#![ cfg_attr( feature = "stdweb" , recursion_limit = "128" ) ]
129
+ #![ warn( rust_2018_idioms, unused_lifetimes) ]
129
130
130
131
#[ macro_use]
131
132
extern crate cfg_if;
You can’t perform that action at this time.
0 commit comments