1
Fork 0

Rollup merge of #52946 - Ajacmac:doc-impl-from, r=GuillaumeGomez

Documented impl From on line 367 of libserialize/json.rs

This is for the impl From mentioned in #51430 assigned to @skade .

Hopefully I didn't miss anything/get anything wrong. I looked over another PR for another part of this same issue to see what the proper formatting was, etc.

Thanks!
This commit is contained in:
kennytm 2018-08-17 00:13:19 +08:00 committed by GitHub
commit 07ce2a3518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -365,6 +365,9 @@ impl std::error::Error for EncoderError {
}
impl From<fmt::Error> for EncoderError {
/// Converts a [`fmt::Error`] into `EncoderError`
///
/// This conversion does not allocate memory.
fn from(err: fmt::Error) -> EncoderError { EncoderError::FmtError(err) }
}