提交 d4b7c635 编写于 作者: S Strategic Technologies

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

上级 8c069ceb
......@@ -365,6 +365,9 @@ fn description(&self) -> &str { "encoder error" }
}
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) }
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册