Fixes necessary for having no_std imports work with edition2018

This commit is contained in:
Alexander Theißen
2020-10-22 12:26:24 +02:00
parent a2653cff5a
commit aebfc0fbd7
15 changed files with 54 additions and 42 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ use super::{
PackingError,
OptimizerError,
TargetRuntime,
std::fmt,
};
use parity_wasm::elements;
@@ -36,8 +37,8 @@ pub enum SourceTarget {
Unknown,
}
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
use self::Error::*;
match self {
Encoding(err) => write!(f, "Encoding error ({})", err),