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 13, 2024
1 parent 8286a5b commit 878d51c
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 878d51c

Please sign in to comment.