clippy: drop needless lifetimes
According to https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes these lifetimes can be dropped. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
This commit is contained in:
parent
0d9ecc2f2d
commit
b66383095e
@ -104,9 +104,9 @@ impl Interfaces {
|
||||
/// Search interface base on interface name and interface type.
|
||||
/// When using [InterfaceType::Unknown], we only search kernel
|
||||
/// interface(which has presentation in kernel space).
|
||||
pub fn get_iface<'a, 'b>(
|
||||
pub fn get_iface<'a>(
|
||||
&'a self,
|
||||
iface_name: &'b str,
|
||||
iface_name: &str,
|
||||
iface_type: InterfaceType,
|
||||
) -> Option<&'a Interface> {
|
||||
if iface_type == InterfaceType::Unknown {
|
||||
|
@ -238,9 +238,9 @@ impl Interfaces {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn get_iface_mut<'a, 'b>(
|
||||
pub(crate) fn get_iface_mut<'a>(
|
||||
&'a mut self,
|
||||
iface_name: &'b str,
|
||||
iface_name: &str,
|
||||
iface_type: InterfaceType,
|
||||
) -> Option<&'a mut Interface> {
|
||||
if iface_type.is_userspace() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user