Remove unneeded derefs

This commit is contained in:
Frank Denis 2017-05-12 13:58:52 +02:00
parent 3a36b3ac6e
commit 7955d0d55a
1 changed files with 2 additions and 2 deletions

View File

@ -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) {