diff options
author | Mustafa Salih <37256744+MustafaSalih1993@users.noreply.github.com> | 2021-02-15 04:31:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 04:31:29 +0300 |
commit | f16724e986b17dd739b086a917672bb36b1d9b16 (patch) | |
tree | 508ce31128c5e2c0ea21a50acdf1901c7e0fd428 /src/utils/pub_ip.rs | |
parent | c4cd23f471fe8d6fdac7ddca436b477c16031373 (diff) |
Dev (#45)
* added bitcoins prices
* removed unwanted formating
Diffstat (limited to 'src/utils/pub_ip.rs')
-rw-r--r-- | src/utils/pub_ip.rs | 2 |
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() { |