Make clippy happy (needless-return, etc.)

This commit is contained in:
Rudi Floren 2021-03-04 12:35:12 +00:00 committed by Timo Kösters
parent 1a940b6e05
commit 231c6032f4
7 changed files with 19 additions and 17 deletions

View file

@ -220,7 +220,7 @@ fn add_port_to_hostname(destination_str: String) -> String {
#[tracing::instrument(skip(globals))]
async fn find_actual_destination(
globals: &crate::database::globals::Globals,
destination: &Box<ServerName>,
destination: &'_ ServerName,
) -> (String, Option<String>) {
let mut host = None;
@ -277,9 +277,9 @@ async fn find_actual_destination(
}
#[tracing::instrument(skip(globals))]
async fn query_srv_record<'a>(
async fn query_srv_record(
globals: &crate::database::globals::Globals,
hostname: &'a str,
hostname: &'_ str,
) -> Option<String> {
if let Ok(Some(host_port)) = globals
.dns_resolver()