From c11c5f89548020e24de6c7d0a2628dd510f9a93a Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 18 Oct 2022 19:11:36 +0200 Subject: [PATCH] fix broken build We have a merge problem on main, one PR used functions there were removed in another. https://github.com/containers/netavark/pull/448 https://github.com/containers/netavark/pull/447 Sorry I should have noticed this and rebased. Signed-off-by: Paul Holzinger --- src/network/netlink.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/netlink.rs b/src/network/netlink.rs index 968dc4055..d70a9d9d6 100644 --- a/src/network/netlink.rs +++ b/src/network/netlink.rs @@ -159,7 +159,7 @@ impl Socket { let msg = Self::create_addr_msg(link_id, addr); let result = self.make_netlink_request(RtnlMessage::DelAddress(msg), NLM_F_ACK)?; if !result.is_empty() { - return Err(NetavarkError::msg_str("unexpected netlink result")); + return Err(NetavarkError::msg("unexpected netlink result")); } Ok(()) @@ -217,7 +217,7 @@ impl Socket { let result = self.make_netlink_request(RtnlMessage::DelRoute(msg), NLM_F_ACK)?; if !result.is_empty() { - return Err(NetavarkError::msg_str("unexpected netlink result")); + return Err(NetavarkError::msg("unexpected netlink result")); } Ok(())