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
Usually, the "load" API should give a signature like fn <R: Read>(reader: R) -> Result<T, E>.
Current API with signature like fn (filename: &str) -> Result<T, E> can be preserved.
Also, load by filename should have a more generic signature like fn <P: AsRef<Path>>(path: P) -> Result<T, E>.
The text was updated successfully, but these errors were encountered:
Usually, the "load" API should give a signature like
fn <R: Read>(reader: R) -> Result<T, E>
.Current API with signature like
fn (filename: &str) -> Result<T, E>
can be preserved.Also, load by filename should have a more generic signature like
fn <P: AsRef<Path>>(path: P) -> Result<T, E>
.The text was updated successfully, but these errors were encountered: