From 0e5d485840701e196da1bad64a72bd2ce6d1133d Mon Sep 17 00:00:00 2001 From: talhahwahla Date: Thu, 23 Nov 2023 21:06:31 +0500 Subject: [PATCH] refactor --- src/ipinfo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipinfo.rs b/src/ipinfo.rs index f17b38f..d32073a 100644 --- a/src/ipinfo.rs +++ b/src/ipinfo.rs @@ -179,7 +179,7 @@ impl IpInfo { fs::File::open(config.continents_file_path.as_ref().unwrap()) .expect("error opening file"); ipinfo_obj.continents = - serde_json::from_reader(t_file).expect("error parsing JSON!"); + serde_json::from_reader(t_file).expect("error parsing JSON!"); } Ok(ipinfo_obj)