From 1aa47140bcf86e40a59db82839f0b29a0ca208b2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 24 Jul 2021 20:26:43 +0100 Subject: [PATCH] config: remove some xxxs Signed-off-by: Ian Jackson --- macros/macros.rs | 7 ++----- src/config.rs | 4 ++-- src/lib.rs | 2 ++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/macros/macros.rs b/macros/macros.rs index 51ab23a..5f684a2 100644 --- a/macros/macros.rs +++ b/macros/macros.rs @@ -2,11 +2,8 @@ // SPDX-License-Identifier: AGPL-3.0-or-later // There is NO WARRANTY. -#![allow(unused_imports)] // xxx -#![allow(unused_variables)] // xxx -#![allow(unused_mut)] // xxx - -use syn::{parse_macro_input, parse_quote, Data, DataStruct, DeriveInput, Meta, NestedMeta, Path}; +use syn::{parse_macro_input, parse_quote}; +use syn::{Data, DataStruct, DeriveInput, Meta, NestedMeta}; use quote::{quote, quote_spanned, ToTokens}; use proc_macro2::{Literal, TokenStream}; diff --git a/src/config.rs b/src/config.rs index 34b9a0c..dea5bab 100644 --- a/src/config.rs +++ b/src/config.rs @@ -145,7 +145,7 @@ impl<'v> RawValRef<'v,'_,'_> { } pub struct Config { - opts: Opts, + pub opts: Opts, } static OUTSIDE_SECTION: &str = "["; @@ -630,7 +630,7 @@ impl<'c> ResolveContext<'c> { } #[throws(AE)] - pub fn special_server(&self, key: &'static str) -> ServerName { + pub fn special_server(&self, _key: &'static str) -> ServerName { self.link.server.clone() } } diff --git a/src/lib.rs b/src/lib.rs index 42196f5..613ae59 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,10 +2,12 @@ // SPDX-License-Identifier: AGPL-3.0-or-later // There is NO WARRANTY. +/* #![allow(unused_imports)] // xxx #![allow(unreachable_code)] // xxx #![allow(dead_code)] // xxx #![allow(unused_variables)] // xxx +*/ #![feature(io_error_more)] // EK::IsADirectory -- 2.30.2