Skip to content

Commit

Permalink
Merge pull request #453 from Luap99/fix-build
Browse files Browse the repository at this point in the history
fix broken build
  • Loading branch information
openshift-merge-robot authored Oct 18, 2022
2 parents 706601a + c11c5f8 commit d9e76ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/netlink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down Expand Up @@ -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(())
Expand Down

0 comments on commit d9e76ab

Please sign in to comment.