Rename DnsResponse::into_inner() -> into_message()

This commit is contained in:
Mattias Päivärinta 2022-11-16 18:50:15 +01:00 committed by Benjamin Fry
parent 249fb26608
commit c5ed00fda2
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ impl DnsResponse {
}
/// Take the inner Message from the response
pub fn into_inner(self) -> Message {
pub fn into_message(self) -> Message {
self.0
}
}

View File

@ -477,7 +477,7 @@ async fn handle_request(
}
};
let response = response.into_inner();
let response = response.into_message();
println!("; received response");
println!("{response}", response = response);
Ok(())