Add non_exhaustive to SignError

Errors that may have variants added/removed should have `non_exhaustive`
on them.
This commit is contained in:
Tobin C. Harding 2023-07-27 11:15:34 +10:00
parent 04976eddcf
commit 2867acfffa
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 0 deletions

View File

@ -659,6 +659,7 @@ pub enum SigningAlgorithm {
/// Errors encountered while calculating the sighash message. /// Errors encountered while calculating the sighash message.
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone)] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone)]
#[non_exhaustive]
pub enum SignError { pub enum SignError {
/// Input index out of bounds (actual index, maximum index allowed). /// Input index out of bounds (actual index, maximum index allowed).
IndexOutOfBounds(usize, usize), IndexOutOfBounds(usize, usize),