Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingoujAtDevolution committed Feb 22, 2024
1 parent 2c84391 commit 83c2b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/tcp_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() -> io::Result<()> {
};

println!("event: {:?}", event);
if event.is_err().unwrap_or(false){
if event.is_err().unwrap_or(false) {
println!("connect failed");
}

Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,10 @@ impl Event {
/// Returns `Some(true)` if the connection has failed, `Some(false)` if the connection has not failed,
/// or `None` if the platform does not support detecting this condition.
#[inline]
#[deprecated(since = "3.4.0", note = "use `is_err` in combination of is_hub instead, see documentation for `is_err`")]
#[deprecated(
since = "3.4.0",
note = "use `is_err` in combination of is_hub instead, see documentation for `is_err`"
)]
pub fn is_connect_failed(&self) -> Option<bool> {
self.extra.is_connect_failed()
}
Expand Down

0 comments on commit 83c2b6c

Please sign in to comment.