From 214de6bed4facb23628aac379b312bf309f1df02 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Tue, 19 Jan 2021 16:22:27 +0100 Subject: [PATCH] Make is_again() public Otherwise the user cannot have custom decoding loops. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 27b845c..12de1bf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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