Skip to content

Commit

Permalink
Add #[allow(dead_code)] to SwResultExt
Browse files Browse the repository at this point in the history
Fixes build warnings on some platforms.
  • Loading branch information
ids1024 committed Feb 12, 2024
1 parent 31dc146 commit 4d62538
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ impl<T> From<HandleError> for InitError<T> {
}

/// Convenient wrapper to cast errors into SoftBufferError.
#[allow(dead_code)]
pub(crate) trait SwResultExt<T> {
fn swbuf_err(self, msg: impl Into<String>) -> Result<T, SoftBufferError>;
}
Expand Down

0 comments on commit 4d62538

Please sign in to comment.