You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the code, we often describe errors with &'static str, e.g. bail!("Read past boundary of given contents.");. I find this convenient when the code is unstable or under rewrite, as we have yet to decide on the enum variants of ErrorKind in err.rs.
At some point, we should go through the code and see what enum variants we need to have in ErrorKind, and use those instead of str, so as to accommodate for applications to do pattern matching on errors.
The text was updated successfully, but these errors were encountered:
In the code, we often describe errors with
&'static str
, e.g.bail!("Read past boundary of given contents.");
. I find this convenient when the code is unstable or under rewrite, as we have yet to decide on the enum variants ofErrorKind
inerr.rs
.At some point, we should go through the code and see what enum variants we need to have in
ErrorKind
, and use those instead ofstr
, so as to accommodate for applications to do pattern matching on errors.The text was updated successfully, but these errors were encountered: