Skip to content

Commit

Permalink
Documented impl From on line 367 of libserialize/json.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajacmac committed Aug 1, 2018
1 parent 8c069ce commit d4b7c63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libserialize/json.rs
Expand Up @@ -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) }
}

Expand Down

0 comments on commit d4b7c63

Please sign in to comment.