From f42e93bc48cf87ec3b0fd485e732f9232959b4f2 Mon Sep 17 00:00:00 2001 From: Darrion Whitfield Date: Tue, 3 Dec 2024 23:17:29 -0600 Subject: [PATCH] fix: warnings --- src/colours.rs | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/colours.rs b/src/colours.rs index 9535722..74e6d52 100644 --- a/src/colours.rs +++ b/src/colours.rs @@ -5,6 +5,7 @@ use ansi_term::Color::*; /// The **colours** are used to paint the input. +#[allow(dead_code)] #[derive(Debug, Default)] pub struct Colours { pub qname: Style, diff --git a/src/main.rs b/src/main.rs index b7e7480..1e633ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,7 +181,7 @@ fn disabled_feature_check(options: &Options) { use std::process::exit; use crate::connect::TransportType; - #[cfg(all(not(feature = "with_tls"), not(feature = "with_rustls_tls")))] + #[cfg(all(not(feature = "with_tls"), not(feature = "with_rustls")))] if options.requests.inputs.transport_types.contains(&TransportType::TLS) { eprintln!("doge: Cannot use '--tls': This version of dog has been compiled without TLS support"); exit(exits::OPTIONS_ERROR);