mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-21 13:31:02 +00:00
Fixes necessary for having no_std imports work with edition2018
This commit is contained in:
+3
-2
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user