Remove unneeded derefs
This commit is contained in:
parent
3a36b3ac6e
commit
7955d0d55a
|
@ -189,7 +189,7 @@ impl WebService {
|
|||
let mut map = serde_json::Map::new();
|
||||
map.insert("announced".to_string(),
|
||||
serde_json::value::Value::Bool(false));
|
||||
return Self::output(Self::accept_type(&req), ip_str, map, cache_header);
|
||||
return Self::output(Self::accept_type(req), ip_str, map, cache_header);
|
||||
}
|
||||
Some(found) => found,
|
||||
};
|
||||
|
@ -206,7 +206,7 @@ impl WebService {
|
|||
serde_json::value::Value::String(found.country.clone()));
|
||||
map.insert("as_description".to_string(),
|
||||
serde_json::value::Value::String(found.description.clone()));
|
||||
Self::output(Self::accept_type(&req), ip_str, map, cache_header)
|
||||
Self::output(Self::accept_type(req), ip_str, map, cache_header)
|
||||
}
|
||||
|
||||
pub fn start(asns_arc: Arc<RwLock<Arc<ASNs>>>, listen_addr: &str) {
|
||||
|
|
Loading…
Reference in New Issue