From 18fd8e888e6508ea56d75fe30afafa6c7506a41a Mon Sep 17 00:00:00 2001 From: jmjoy Date: Sat, 22 Jun 2024 23:58:47 +0800 Subject: [PATCH] Fix --- examples/watch.rs | 2 +- src/conf/meta.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/watch.rs b/examples/watch.rs index 57e7eab..3b2f496 100644 --- a/examples/watch.rs +++ b/examples/watch.rs @@ -1,7 +1,7 @@ use apollo_client::conf::{meta::IpValue, requests::WatchRequest, ApolloConfClientBuilder}; use cidr_utils::cidr::IpCidr; use futures_util::{pin_mut, stream::StreamExt}; -use std::error::Error; +use std::{error::Error, str::FromStr}; use url::Url; #[tokio::main] diff --git a/src/conf/meta.rs b/src/conf/meta.rs index 9b14f78..49eed53 100644 --- a/src/conf/meta.rs +++ b/src/conf/meta.rs @@ -155,6 +155,7 @@ impl Display for IpValue { #[cfg(test)] mod tests { use super::*; + use std::str::FromStr; #[test] fn test_notification_new() {