diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/blocking.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ [package] name = "rsdsl_netlinklib" -version = "0.4.1" +version = "0.4.2" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/blocking.rs b/src/blocking.rs index 2ac66e9..5e5c1f9 100644 --- a/src/blocking.rs +++ b/src/blocking.rs @@ -54,7 +54,7 @@ pub mod addr { blockify!(address_add, link: String, addr: IpAddr, prefix_len: u8); blockify!(address_add_link_local, link: String, addr: IpAddr, prefix_len: u8); - pub fn get(&self, link: String) -> crate::Result<Vec<IpAddr>> { + pub fn address_get(&self, link: String) -> crate::Result<Vec<IpAddr>> { tokio::runtime::Runtime::new()? .block_on(async { self.0.address_get(link).await?.try_collect().await }) } |