style: Cargo fmt

This commit is contained in:
theS1LV3R committed 2026-07-03 10:59:13 +02:00
1 parent 76aa54770d
commit fb74da21d9
3 files changed
+27 -27

No files matched your search

+13 -13
View File
@@ -1008,22 +1008,22 @@ impl crate::Context<'_> {
);
}
let resolver: &MatrixResolver = if no_cache {
&MatrixResolver::new()?
} else {
&self.services.resolver.resolver
};
let resolver: &MatrixResolver = if no_cache {
&MatrixResolver::new()?
} else {
&self.services.resolver.resolver
};
let actual = resolver.resolve_server(server_name.as_str()).await?;
let actual = resolver.resolve_server(server_name.as_str()).await?;
let destination = match actual.destination {
| ResolvedDestination::Literal(addr) => addr.to_string(),
| ResolvedDestination::Named(host, port) => format!("{host}:{port}"),
};
let destination = match actual.destination {
| ResolvedDestination::Literal(addr) => addr.to_string(),
| ResolvedDestination::Named(host, port) => format!("{host}:{port}"),
};
let msg = format!("Destination: {}\nHostname URI (SNI): {}", destination, actual.host);
self.write_str(&msg).await
}
let msg = format!("Destination: {}\nHostname URI (SNI): {}", destination, actual.host);
self.write_str(&msg).await
}
pub(super) async fn memory_stats(&self, opts: Option<String>) -> Result {
const OPTS: &str = "abcdefghijklmnopqrstuvwxyz";