rollup merge of #23879: seanmonstar/del-from-error
Conflicts: src/libcore/error.rs
This commit is contained in:
commit
e10ee2c857
10 changed files with 26 additions and 78 deletions
|
@ -367,8 +367,8 @@ impl std::error::Error for EncoderError {
|
|||
fn description(&self) -> &str { "encoder error" }
|
||||
}
|
||||
|
||||
impl std::error::FromError<fmt::Error> for EncoderError {
|
||||
fn from_error(err: fmt::Error) -> EncoderError { EncoderError::FmtError(err) }
|
||||
impl From<fmt::Error> for EncoderError {
|
||||
fn from(err: fmt::Error) -> EncoderError { EncoderError::FmtError(err) }
|
||||
}
|
||||
|
||||
pub type EncodeResult = Result<(), EncoderError>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue