chiark / gitweb /
config: remove some xxxs
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 19:26:43 +0000 (20:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 19:26:43 +0000 (20:26 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
macros/macros.rs
src/config.rs
src/lib.rs

index 51ab23a67c256e7617abb5515083f2c61e6b672b..5f684a21bac939afb570af2f62ef803aac151a47 100644 (file)
@@ -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};
 
index 34b9a0c838343a19cf1f3985345d08a3f58afbc9..dea5bab0723b4450905d9f313a910d25ff01dfea 100644 (file)
@@ -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()
   }
 }
index 42196f51c9f86875e35fc1388e36d832d5e5cbe3..613ae59417fa4f0591e7248dec4250d0d8e9018d 100644 (file)
@@ -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