Skip to content

Commit

Permalink
Make is_again() public
Browse files Browse the repository at this point in the history
Otherwise the user cannot have custom decoding loops.
  • Loading branch information
lu-zero committed Jan 19, 2021
1 parent 8fdf08c commit 214de6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use std::sync::Arc;
pub struct Error(i32);

impl Error {
const fn is_again(&self) -> bool {
pub const fn is_again(&self) -> bool {
const AGAIN: i32 = EAGAIN as i32;
if AGAIN < 0 {
self.0 == AGAIN
Expand Down

0 comments on commit 214de6b

Please sign in to comment.