aboutsummaryrefslogtreecommitdiff
path: root/src/utils/pub_ip.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/pub_ip.rs')
-rw-r--r--src/utils/pub_ip.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pub_ip.rs b/src/utils/pub_ip.rs
index c0e6e4c..4f1335f 100644
--- a/src/utils/pub_ip.rs
+++ b/src/utils/pub_ip.rs
@@ -2,7 +2,7 @@ use crate::config::CONFIG;
use crate::types::ThreadsData;
pub fn get_pub_ip() -> ThreadsData {
- let url = format!("http://api.ipify.org");
+ let url = "http://api.ipify.org".to_string();
let _err = String::from("Error");
let res = match minreq::get(url).send() {
Ok(resp) => match resp.as_str() {