cleanup warnings

This commit is contained in:
bunnie 2026-02-09 02:48:31 +08:00
parent 8a2118b8f6
commit 90b1f2f345
2 changed files with 2 additions and 1 deletions

View file

@ -301,7 +301,7 @@ impl Tls {
///
/// * A Vec<CertificateDer> containing the TLS chain of trust offered by the host
/// * Error if the communication with the host fails
pub fn probe(&self, host: &str) -> Result<Vec<CertificateDer>, Error> {
pub fn probe(&self, host: &str) -> Result<Vec<CertificateDer<'_>>, Error> {
log::info!("starting TLS probe");
match host.to_owned().try_into() {
Ok(server_name) => {

View file

@ -132,6 +132,7 @@ fn main() -> ! {
// Some operating systems and GUI frameworks don't allow creating an event
// loop from a thread other than TID 1. Let the backend claim this thread
// if this may be the case.
#[allow(unreachable_code)]
backend::claim_main_thread(move |main_thread_token| {
#[cfg(not(feature = "ditherpunk"))]
wrapped_main(main_thread_token);