Skip to content

Commit b0fb7fb

Browse files
authored
Fix debug formatting for Events struct (#377)
Fix a copy and paste error that showed the value of the `input` flag of `Events` in place of the `output` and `error` flags in the debug formatting.
1 parent 2684931 commit b0fb7fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/multi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,8 @@ impl fmt::Debug for Events {
10411041
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
10421042
f.debug_struct("Events")
10431043
.field("input", &(self.bits & curl_sys::CURL_CSELECT_IN != 0))
1044-
.field("output", &(self.bits & curl_sys::CURL_CSELECT_IN != 0))
1045-
.field("error", &(self.bits & curl_sys::CURL_CSELECT_IN != 0))
1044+
.field("output", &(self.bits & curl_sys::CURL_CSELECT_OUT != 0))
1045+
.field("error", &(self.bits & curl_sys::CURL_CSELECT_ERR != 0))
10461046
.finish()
10471047
}
10481048
}

0 commit comments

Comments
 (0)