From: Ian Jackson Date: Sat, 24 Jul 2021 19:26:43 +0000 (+0100) Subject: config: remove some xxxs X-Git-Tag: hippotat/1.0.0~456 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=1aa47140bcf86e40a59db82839f0b29a0ca208b2;p=hippotat.git config: remove some xxxs Signed-off-by: Ian Jackson --- 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