summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/if_.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/if_.rs b/src/net/if_.rs
index 58d677ae..96364884 100644
--- a/src/net/if_.rs
+++ b/src/net/if_.rs
@@ -3,9 +3,8 @@
//! Uses Linux and/or POSIX functions to resolve interface names like "eth0"
//! or "socan1" into device numbers.
-use libc;
use libc::c_uint;
-use {Result, Error, NixPath};
+use crate::{Result, Error, NixPath};
/// Resolve an interface into a interface number.
pub fn if_nametoindex<P: ?Sized + NixPath>(name: &P) -> Result<c_uint> {