Add non_exhaustive to SignError
Errors that may have variants added/removed should have `non_exhaustive` on them.
This commit is contained in:
parent
04976eddcf
commit
2867acfffa
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue