Skip to content

Commit 1c264bd

Browse files
committed
Fix use of std:: in the OpenBSD-like module
1 parent 2e2e4e1 commit 1c264bd

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

src/unix/bsd/netbsdlike/openbsdlike/mod.rs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ cfg_if! {
242242

243243
impl Eq for dirent {}
244244

245-
impl std::fmt::Debug for dirent {
246-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
245+
impl ::fmt::Debug for dirent {
246+
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
247247
f.debug_struct("dirent")
248248
.field("d_fileno", &self.d_fileno)
249249
.field("d_off", &self.d_off)
@@ -255,8 +255,8 @@ cfg_if! {
255255
}
256256
}
257257

258-
impl std::hash::Hash for dirent {
259-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
258+
impl ::hash::Hash for dirent {
259+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
260260
self.d_fileno.hash(state);
261261
self.d_off.hash(state);
262262
self.d_reclen.hash(state);
@@ -275,17 +275,17 @@ cfg_if! {
275275

276276
impl Eq for sockaddr_storage {}
277277

278-
impl std::fmt::Debug for sockaddr_storage {
279-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
278+
impl ::fmt::Debug for sockaddr_storage {
279+
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
280280
f.debug_struct("sockaddr_storage")
281281
.field("ss_len", &self.ss_len)
282282
.field("ss_family", &self.ss_family)
283283
.finish()
284284
}
285285
}
286286

287-
impl std::hash::Hash for sockaddr_storage {
288-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
287+
impl ::hash::Hash for sockaddr_storage {
288+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
289289
self.ss_len.hash(state);
290290
self.ss_family.hash(state);
291291
}
@@ -302,8 +302,8 @@ cfg_if! {
302302

303303
impl Eq for siginfo_t {}
304304

305-
impl std::fmt::Debug for siginfo_t {
306-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
305+
impl ::fmt::Debug for siginfo_t {
306+
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
307307
f.debug_struct("siginfo_t")
308308
.field("si_signo", &self.si_signo)
309309
.field("si_code", &self.si_code)
@@ -313,8 +313,8 @@ cfg_if! {
313313
}
314314
}
315315

316-
impl std::hash::Hash for siginfo_t {
317-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
316+
impl ::hash::Hash for siginfo_t {
317+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
318318
self.si_signo.hash(state);
319319
self.si_code.hash(state);
320320
self.si_errno.hash(state);
@@ -340,8 +340,8 @@ cfg_if! {
340340

341341
impl Eq for lastlog {}
342342

343-
impl std::fmt::Debug for lastlog {
344-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
343+
impl ::fmt::Debug for lastlog {
344+
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
345345
f.debug_struct("lastlog")
346346
.field("ll_time", &self.ll_time)
347347
// FIXME: .field("ll_line", &self.ll_line)
@@ -350,8 +350,8 @@ cfg_if! {
350350
}
351351
}
352352

353-
impl std::hash::Hash for lastlog {
354-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
353+
impl ::hash::Hash for lastlog {
354+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
355355
self.ll_time.hash(state);
356356
self.ll_line.hash(state);
357357
self.ll_host.hash(state);
@@ -381,8 +381,8 @@ cfg_if! {
381381

382382
impl Eq for utmp {}
383383

384-
impl std::fmt::Debug for utmp {
385-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
384+
impl ::fmt::Debug for utmp {
385+
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
386386
f.debug_struct("utmp")
387387
// FIXME: .field("ut_line", &self.ut_line)
388388
// FIXME: .field("ut_name", &self.ut_name)
@@ -392,8 +392,8 @@ cfg_if! {
392392
}
393393
}
394394

395-
impl std::hash::Hash for utmp {
396-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
395+
impl ::hash::Hash for utmp {
396+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
397397
self.ut_line.hash(state);
398398
self.ut_name.hash(state);
399399
self.ut_host.hash(state);

src/unix/bsd/netbsdlike/openbsdlike/openbsd/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,16 @@ cfg_if! {
157157

158158
impl Eq for mount_info { }
159159

160-
impl std::fmt::Debug for mount_info {
161-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
160+
impl ::fmt::Debug for mount_info {
161+
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
162162
f.debug_struct("mount_info")
163163
// FIXME: .field("align", &self.align)
164164
.finish()
165165
}
166166
}
167167

168-
impl std::hash::Hash for mount_info {
169-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
168+
impl ::hash::Hash for mount_info {
169+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
170170
unsafe { self.align.hash(state) };
171171
}
172172
}
@@ -246,9 +246,9 @@ cfg_if! {
246246

247247
impl Eq for statfs { }
248248

249-
impl std::fmt::Debug for statfs {
250-
fn fmt(&self, f: &mut std::fmt::Formatter)
251-
-> std::fmt::Result {
249+
impl ::fmt::Debug for statfs {
250+
fn fmt(&self, f: &mut ::fmt::Formatter)
251+
-> ::fmt::Result {
252252
f.debug_struct("statfs")
253253
.field("f_flags", &self.f_flags)
254254
.field("f_bsize", &self.f_bsize)
@@ -276,8 +276,8 @@ cfg_if! {
276276
}
277277
}
278278

279-
impl std::hash::Hash for statfs {
280-
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
279+
impl ::hash::Hash for statfs {
280+
fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
281281
self.f_flags.hash(state);
282282
self.f_bsize.hash(state);
283283
self.f_iosize.hash(state);

0 commit comments

Comments
 (0)