diff --git a/g3proxy/src/escape/mod.rs b/g3proxy/src/escape/mod.rs index 0808b59a..23385369 100644 --- a/g3proxy/src/escape/mod.rs +++ b/g3proxy/src/escape/mod.rs @@ -138,6 +138,7 @@ pub(crate) trait EscaperInternal { #[async_trait] pub(crate) trait Escaper: EscaperInternal { fn name(&self) -> &MetricsName; + #[allow(unused)] fn escaper_type(&self) -> &str; fn get_escape_stats(&self) -> Option { None diff --git a/g3proxy/src/serve/http_proxy/task/ftp/list.rs b/g3proxy/src/serve/http_proxy/task/ftp/list.rs index 4c8f8781..e9fdf1ae 100644 --- a/g3proxy/src/serve/http_proxy/task/ftp/list.rs +++ b/g3proxy/src/serve/http_proxy/task/ftp/list.rs @@ -14,7 +14,7 @@ * limitations under the License. */ -use std::io::{self, Error, Write}; +use std::io::{self, Write}; use tokio::io::{AsyncWrite, AsyncWriteExt, BufWriter}; @@ -26,8 +26,11 @@ const CHUNKED_BUF_TAIL_RESERVED: usize = 2; pub(super) trait ListWriter: FtpLineDataReceiver { fn take_io_error(&mut self) -> Option; async fn flush_buf(&mut self) -> io::Result<()>; + #[allow(unused)] fn is_idle(&self) -> bool; + #[allow(unused)] fn reset_active(&mut self); + #[allow(unused)] fn no_cached_data(&self) -> bool; } @@ -102,7 +105,7 @@ where W: AsyncWrite + Send + Unpin, { #[inline] - fn take_io_error(&mut self) -> Option { + fn take_io_error(&mut self) -> Option { self.io_error.take() } diff --git a/g3tiles/src/config/backend/mod.rs b/g3tiles/src/config/backend/mod.rs index deb18529..90419892 100644 --- a/g3tiles/src/config/backend/mod.rs +++ b/g3tiles/src/config/backend/mod.rs @@ -42,6 +42,7 @@ pub(crate) enum BackendConfigDiffAction { pub(crate) trait BackendConfig { fn name(&self) -> &MetricsName; fn position(&self) -> Option; + #[allow(unused)] fn backend_type(&self) -> &'static str; fn diff_action(&self, new: &AnyBackendConfig) -> BackendConfigDiffAction; diff --git a/g3tiles/src/config/discover/mod.rs b/g3tiles/src/config/discover/mod.rs index 06df4314..cc6eaccd 100644 --- a/g3tiles/src/config/discover/mod.rs +++ b/g3tiles/src/config/discover/mod.rs @@ -49,6 +49,7 @@ pub(crate) enum DiscoverConfigDiffAction { pub(crate) trait DiscoverConfig { fn name(&self) -> &MetricsName; fn position(&self) -> Option; + #[allow(unused)] fn discover_type(&self) -> &'static str; fn diff_action(&self, new: &AnyDiscoverConfig) -> DiscoverConfigDiffAction;