aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml2
-rw-r--r--src/blocking.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 4a41b1a..c77f089 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -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 })
}