Make clippy happy (needless-return, etc.)
This commit is contained in:
committed by
Timo Kösters
parent
1a940b6e05
commit
231c6032f4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user