Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-28 11:08:05 -0400
committerMike Gerwitz <mike.gerwitz@ryansg.com>2020-04-28 11:08:05 -0400
commit0f4b2d75f87e92b02991fc53faec59454e7b9cfa (patch)
treee8795243b9dad6e1d426b18d9281786c33ddedbd
parent549e9ca23b6059ae8618c78fb722150b10f9a909 (diff)
downloadtame-0f4b2d75f87e92b02991fc53faec59454e7b9cfa.tar.gz
tame-0f4b2d75f87e92b02991fc53faec59454e7b9cfa.tar.bz2
tame-0f4b2d75f87e92b02991fc53faec59454e7b9cfa.zip
[DEV-7084] TAMER: obj::xmlo: Private inner modules
-rw-r--r--tamer/src/ld/poc.rs3
-rw-r--r--tamer/src/obj/xmlo/mod.rs3
-rw-r--r--tamer/src/obj/xmlo/reader.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/tamer/src/ld/poc.rs b/tamer/src/ld/poc.rs
index fa27bcf..11f2f23 100644
--- a/tamer/src/ld/poc.rs
+++ b/tamer/src/ld/poc.rs
@@ -29,8 +29,7 @@ use crate::ir::asg::{
SortableAsg,
};
use crate::obj::xmle::writer::XmleWriter;
-use crate::obj::xmlo::reader::XmloReader;
-use crate::obj::xmlo::{AsgBuilder, AsgBuilderState};
+use crate::obj::xmlo::{AsgBuilder, AsgBuilderState, XmloReader};
use crate::sym::{DefaultInterner, Interner, Symbol};
use fxhash::FxBuildHasher;
use std::error::Error;
diff --git a/tamer/src/obj/xmlo/mod.rs b/tamer/src/obj/xmlo/mod.rs
index cda31dd..020bfc5 100644
--- a/tamer/src/obj/xmlo/mod.rs
+++ b/tamer/src/obj/xmlo/mod.rs
@@ -75,6 +75,7 @@
//! ```
mod asg_builder;
-pub mod reader;
+mod reader;
pub use asg_builder::{AsgBuilder, AsgBuilderState};
+pub use reader::{XmloError, XmloEvent, XmloReader};
diff --git a/tamer/src/obj/xmlo/reader.rs b/tamer/src/obj/xmlo/reader.rs
index 0a4ff9f..754fc91 100644
--- a/tamer/src/obj/xmlo/reader.rs
+++ b/tamer/src/obj/xmlo/reader.rs
@@ -50,7 +50,7 @@
//!
//! ```
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
-//! use tamer::obj::xmlo::reader::{XmloReader, XmloEvent};
+//! use tamer::obj::xmlo::{XmloEvent, XmloReader};
//! use tamer::ir::legacyir::SymType;
//! use tamer::sym::{DefaultInterner, Interner};
//!