Added Debug to public structs. Close #173

This commit is contained in:
Syrus
2020-07-21 20:38:32 -07:00
parent e1838ff59b
commit 1293df8dd6
11 changed files with 123 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
use crate::store::Store;
use crate::types::{ExportType, ImportType};
use crate::InstantiationError;
use std::fmt;
use std::io;
use std::path::Path;
use std::sync::Arc;
@@ -410,3 +411,11 @@ impl Module {
&self.artifact.module_ref()
}
}
impl fmt::Debug for Module {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Module")
.field("name", &self.name())
.finish()
}
}