Skip to content

Commit c89065d

Browse files
committed
Make struct error internals public
Its better if a struct error has a public inner field so users can access it in ways other than through `Display`. Audit all the struct errors (only found one) and add `pub` to the inner field.
1 parent ac24f23 commit c89065d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/segwit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn validate_witness_program_length(
5555
/// Field element does not represent a valid witness version.
5656
#[derive(Debug, Clone, PartialEq, Eq)]
5757
#[non_exhaustive]
58-
pub struct InvalidWitnessVersionError(Fe32);
58+
pub struct InvalidWitnessVersionError(pub Fe32);
5959

6060
impl fmt::Display for InvalidWitnessVersionError {
6161
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {

0 commit comments

Comments
 (0)