Removing the hack from error handling chapter, which is does not make sense anymore.

This commit is contained in:
Ivan Ivaschenko 2015-11-06 13:44:42 +02:00
parent 6878fce9c7
commit d071bd00bf

View File

@ -1137,11 +1137,7 @@ impl error::Error for CliError {
// implementations.
match *self {
CliError::Io(ref err) => err.description(),
// Normally we can just write `err.description()`, but the error
// type has a concrete method called `description`, which conflicts
// with the trait method. For now, we must explicitly call
// `description` through the `Error` trait.
CliError::Parse(ref err) => error::Error::description(err),
CliError::Parse(ref err) => err.description(err),
}
}