Skip to content

Commit 74f75b8

Browse files
committed
Always use correct snafu(visibility)
1 parent 5f6c7c1 commit 74f75b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

portmapper/src/pcp/protocol/response.rs

+2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pub struct Response {
130130
span_trace: n0_snafu::SpanTrace,
131131
})]
132132
#[derive(Debug, Snafu)]
133+
#[snafu(visibility(pub(crate)))]
133134
pub enum DecodeError {
134135
/// Request is too short or is otherwise malformed.
135136
#[snafu(display("Response is malformed"))]
@@ -168,6 +169,7 @@ impl PartialEq for DecodeError {
168169
impl Eq for DecodeError {}
169170

170171
#[derive(Debug, Snafu, PartialEq, Eq)]
172+
#[snafu(visibility(pub(crate)))]
171173
pub enum Error {
172174
#[snafu(transparent)]
173175
DecodeError { source: DecodeError },

0 commit comments

Comments
 (0)