@@ -932,7 +932,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
932
932
933
933
"std::time::Duration" |"core::time::Duration" => Some ( "u64" ) ,
934
934
"std::time::SystemTime" => Some ( "u64" ) ,
935
- "std::io::Error" |"lightning::io::Error" => Some ( "crate::c_types::IOError" ) ,
935
+ "std::io::Error" |"lightning::io::Error" | "lightning::io::ErrorKind" => Some ( "crate::c_types::IOError" ) ,
936
936
"core::fmt::Arguments" if is_ref => Some ( "crate::c_types::Str" ) ,
937
937
938
938
"core::convert::Infallible" => Some ( "crate::c_types::NotConstructable" ) ,
@@ -1017,7 +1017,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1017
1017
1018
1018
"str" if is_ref => Some ( "" ) ,
1019
1019
"alloc::string::String" |"String" => Some ( "" ) ,
1020
- "std::io::Error" |"lightning::io::Error" => Some ( "" ) ,
1020
+ "std::io::Error" |"lightning::io::Error" | "lightning::io::ErrorKind" => Some ( "" ) ,
1021
1021
// Note that we'll panic for String if is_ref, as we only have non-owned memory, we
1022
1022
// cannot create a &String.
1023
1023
@@ -1108,6 +1108,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1108
1108
"str" if is_ref => Some ( ".into_str()" ) ,
1109
1109
"alloc::string::String" |"String" => Some ( ".into_string()" ) ,
1110
1110
"std::io::Error" |"lightning::io::Error" => Some ( ".to_rust()" ) ,
1111
+ "lightning::io::ErrorKind" => Some ( ".to_rust_kind()" ) ,
1111
1112
1112
1113
"core::convert::Infallible" => Some ( "\" )" ) ,
1113
1114
@@ -1204,6 +1205,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1204
1205
"std::time::Duration" |"core::time::Duration" => Some ( "" ) ,
1205
1206
"std::time::SystemTime" => Some ( "" ) ,
1206
1207
"std::io::Error" |"lightning::io::Error" => Some ( "crate::c_types::IOError::from_rust(" ) ,
1208
+ "lightning::io::ErrorKind" => Some ( "crate::c_types::IOError::from_rust_kind(" ) ,
1207
1209
"core::fmt::Arguments" => Some ( "alloc::format!(\" {}\" , " ) ,
1208
1210
1209
1211
"core::convert::Infallible" => Some ( "panic!(\" Cannot construct an Infallible: " ) ,
@@ -1283,7 +1285,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
1283
1285
1284
1286
"std::time::Duration" |"core::time::Duration" => Some ( ".as_secs()" ) ,
1285
1287
"std::time::SystemTime" => Some ( ".duration_since(::std::time::SystemTime::UNIX_EPOCH).expect(\" Times must be post-1970\" ).as_secs()" ) ,
1286
- "std::io::Error" |"lightning::io::Error" => Some ( ")" ) ,
1288
+ "std::io::Error" |"lightning::io::Error" | "lightning::io::ErrorKind" => Some ( ")" ) ,
1287
1289
"core::fmt::Arguments" => Some ( ").into()" ) ,
1288
1290
1289
1291
"core::convert::Infallible" => Some ( "\" )" ) ,
0 commit comments