use proper rust convention for RData::{ip_addr, record_type} fns

This commit is contained in:
Benjamin Fry
2023-02-14 18:35:18 -08:00
parent 4a1c4fe2d1
commit 7aaf10078d
7 changed files with 24 additions and 24 deletions

View File

@@ -397,7 +397,7 @@ impl<P: RuntimeProvider> AsyncResolver<P> {
if self.options.ndots > 4 {
finally_ip_addr = Some(record);
} else {
let query = Query::query(name, ip_addr.to_record_type());
let query = Query::query(name, ip_addr.record_type());
let lookup = Lookup::new_with_max_ttl(query, Arc::from([record]));
return Ok(lookup.into());
}