@@ -1068,26 +1068,6 @@ cfg_if! {
1068
1068
}
1069
1069
}
1070
1070
impl Eq for sysinfo { }
1071
- impl fmt:: Debug for sysinfo {
1072
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1073
- f. debug_struct( "sysinfo" )
1074
- . field( "uptime" , & self . uptime)
1075
- . field( "loads" , & self . loads)
1076
- . field( "totalram" , & self . totalram)
1077
- . field( "freeram" , & self . freeram)
1078
- . field( "sharedram" , & self . sharedram)
1079
- . field( "bufferram" , & self . bufferram)
1080
- . field( "totalswap" , & self . totalswap)
1081
- . field( "freeswap" , & self . freeswap)
1082
- . field( "procs" , & self . procs)
1083
- . field( "pad" , & self . pad)
1084
- . field( "totalhigh" , & self . totalhigh)
1085
- . field( "freehigh" , & self . freehigh)
1086
- . field( "mem_unit" , & self . mem_unit)
1087
- // FIXME(debug): .field("__reserved", &self.__reserved)
1088
- . finish( )
1089
- }
1090
- }
1091
1071
impl hash:: Hash for sysinfo {
1092
1072
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1093
1073
self . uptime. hash( state) ;
@@ -1118,14 +1098,6 @@ cfg_if! {
1118
1098
}
1119
1099
}
1120
1100
impl Eq for sockaddr_un { }
1121
- impl fmt:: Debug for sockaddr_un {
1122
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1123
- f. debug_struct( "sockaddr_un" )
1124
- . field( "sun_family" , & self . sun_family)
1125
- // FIXME(debug): .field("sun_path", &self.sun_path)
1126
- . finish( )
1127
- }
1128
- }
1129
1101
impl hash:: Hash for sockaddr_un {
1130
1102
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1131
1103
self . sun_family. hash( state) ;
@@ -1145,15 +1117,6 @@ cfg_if! {
1145
1117
}
1146
1118
}
1147
1119
impl Eq for sockaddr_storage { }
1148
- impl fmt:: Debug for sockaddr_storage {
1149
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1150
- f. debug_struct( "sockaddr_storage" )
1151
- . field( "ss_family" , & self . ss_family)
1152
- . field( "__ss_align" , & self . __ss_align)
1153
- // FIXME(debug): .field("__ss_pad2", &self.__ss_pad2)
1154
- . finish( )
1155
- }
1156
- }
1157
1120
impl hash:: Hash for sockaddr_storage {
1158
1121
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1159
1122
self . ss_family. hash( state) ;
@@ -1191,17 +1154,6 @@ cfg_if! {
1191
1154
}
1192
1155
}
1193
1156
impl Eq for utsname { }
1194
- impl fmt:: Debug for utsname {
1195
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1196
- f. debug_struct( "utsname" )
1197
- // FIXME(debug): .field("sysname", &self.sysname)
1198
- // FIXME(debug): .field("nodename", &self.nodename)
1199
- // FIXME(debug): .field("release", &self.release)
1200
- // FIXME(debug): .field("version", &self.version)
1201
- // FIXME(debug): .field("machine", &self.machine)
1202
- . finish( )
1203
- }
1204
- }
1205
1157
impl hash:: Hash for utsname {
1206
1158
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1207
1159
self . sysname. hash( state) ;
@@ -1226,17 +1178,6 @@ cfg_if! {
1226
1178
}
1227
1179
}
1228
1180
impl Eq for dirent { }
1229
- impl fmt:: Debug for dirent {
1230
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1231
- f. debug_struct( "dirent" )
1232
- . field( "d_ino" , & self . d_ino)
1233
- . field( "d_off" , & self . d_off)
1234
- . field( "d_reclen" , & self . d_reclen)
1235
- . field( "d_type" , & self . d_type)
1236
- // FIXME(debug): .field("d_name", &self.d_name)
1237
- . finish( )
1238
- }
1239
- }
1240
1181
impl hash:: Hash for dirent {
1241
1182
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1242
1183
self . d_ino. hash( state) ;
@@ -1261,17 +1202,6 @@ cfg_if! {
1261
1202
}
1262
1203
}
1263
1204
impl Eq for dirent64 { }
1264
- impl fmt:: Debug for dirent64 {
1265
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1266
- f. debug_struct( "dirent64" )
1267
- . field( "d_ino" , & self . d_ino)
1268
- . field( "d_off" , & self . d_off)
1269
- . field( "d_reclen" , & self . d_reclen)
1270
- . field( "d_type" , & self . d_type)
1271
- // FIXME(debug): .field("d_name", &self.d_name)
1272
- . finish( )
1273
- }
1274
- }
1275
1205
impl hash:: Hash for dirent64 {
1276
1206
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1277
1207
self . d_ino. hash( state) ;
@@ -1291,16 +1221,6 @@ cfg_if! {
1291
1221
}
1292
1222
}
1293
1223
impl Eq for mq_attr { }
1294
- impl fmt:: Debug for mq_attr {
1295
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1296
- f. debug_struct( "mq_attr" )
1297
- . field( "mq_flags" , & self . mq_flags)
1298
- . field( "mq_maxmsg" , & self . mq_maxmsg)
1299
- . field( "mq_msgsize" , & self . mq_msgsize)
1300
- . field( "mq_curmsgs" , & self . mq_curmsgs)
1301
- . finish( )
1302
- }
1303
- }
1304
1224
impl hash:: Hash for mq_attr {
1305
1225
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1306
1226
self . mq_flags. hash( state) ;
@@ -1318,15 +1238,6 @@ cfg_if! {
1318
1238
}
1319
1239
}
1320
1240
impl Eq for sockaddr_nl { }
1321
- impl fmt:: Debug for sockaddr_nl {
1322
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1323
- f. debug_struct( "sockaddr_nl" )
1324
- . field( "nl_family" , & self . nl_family)
1325
- . field( "nl_pid" , & self . nl_pid)
1326
- . field( "nl_groups" , & self . nl_groups)
1327
- . finish( )
1328
- }
1329
- }
1330
1241
impl hash:: Hash for sockaddr_nl {
1331
1242
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1332
1243
self . nl_family. hash( state) ;
@@ -1347,17 +1258,6 @@ cfg_if! {
1347
1258
}
1348
1259
}
1349
1260
impl Eq for sigevent { }
1350
- impl fmt:: Debug for sigevent {
1351
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1352
- f. debug_struct( "sigevent" )
1353
- . field( "sigev_value" , & self . sigev_value)
1354
- . field( "sigev_signo" , & self . sigev_signo)
1355
- . field( "sigev_notify" , & self . sigev_notify)
1356
- . field( "sigev_notify_function" , & self . sigev_notify_function)
1357
- . field( "sigev_notify_attributes" , & self . sigev_notify_attributes)
1358
- . finish( )
1359
- }
1360
- }
1361
1261
impl hash:: Hash for sigevent {
1362
1262
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1363
1263
self . sigev_value. hash( state) ;
@@ -1374,13 +1274,6 @@ cfg_if! {
1374
1274
}
1375
1275
}
1376
1276
impl Eq for pthread_cond_t { }
1377
- impl fmt:: Debug for pthread_cond_t {
1378
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1379
- f. debug_struct( "pthread_cond_t" )
1380
- // FIXME(debug): .field("size", &self.size)
1381
- . finish( )
1382
- }
1383
- }
1384
1277
impl hash:: Hash for pthread_cond_t {
1385
1278
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1386
1279
self . size. hash( state) ;
@@ -1393,13 +1286,6 @@ cfg_if! {
1393
1286
}
1394
1287
}
1395
1288
impl Eq for pthread_mutex_t { }
1396
- impl fmt:: Debug for pthread_mutex_t {
1397
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1398
- f. debug_struct( "pthread_mutex_t" )
1399
- // FIXME(debug): .field("size", &self.size)
1400
- . finish( )
1401
- }
1402
- }
1403
1289
impl hash:: Hash for pthread_mutex_t {
1404
1290
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1405
1291
self . size. hash( state) ;
@@ -1412,13 +1298,6 @@ cfg_if! {
1412
1298
}
1413
1299
}
1414
1300
impl Eq for pthread_rwlock_t { }
1415
- impl fmt:: Debug for pthread_rwlock_t {
1416
- fn fmt( & self , f: & mut fmt:: Formatter ) -> fmt:: Result {
1417
- f. debug_struct( "pthread_rwlock_t" )
1418
- // FIXME(debug): .field("size", &self.size)
1419
- . finish( )
1420
- }
1421
- }
1422
1301
impl hash:: Hash for pthread_rwlock_t {
1423
1302
fn hash<H : hash:: Hasher >( & self , state: & mut H ) {
1424
1303
self . size. hash( state) ;
0 commit comments