From 4d62538e4318fffa79d223ab8b6907e2eae3918c Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Sun, 11 Feb 2024 21:09:31 -0800 Subject: [PATCH] Add `#[allow(dead_code)]` to `SwResultExt` Fixes build warnings on some platforms. --- src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/error.rs b/src/error.rs index c2994a7c..eaec8563 100644 --- a/src/error.rs +++ b/src/error.rs @@ -181,6 +181,7 @@ impl From for InitError { } /// Convenient wrapper to cast errors into SoftBufferError. +#[allow(dead_code)] pub(crate) trait SwResultExt { fn swbuf_err(self, msg: impl Into) -> Result; }