From 864702da68ec69ee92e47e77a65c5a86ba200201 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 18 Dec 2024 11:46:29 +0100 Subject: Remove unneeded public references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of the functions are actually private, so don't export them. Moreover, there was an import cycle which was not needed and was forcing a public import. Remove that as well. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/assembler.rs | 6 +++--- lib/xixanta/src/mapping.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index 2f09295..24653e2 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -1,7 +1,7 @@ use crate::errors::{Error, EvalError}; use crate::mapping::Mapping; use crate::node::{ControlType, NodeType, PNode, PString}; -pub use crate::object::{Bundle, Context, Object, ObjectType}; +use crate::object::{Bundle, Context, Object, ObjectType}; use crate::opcodes::{AddressingMode, INSTRUCTIONS}; use crate::parser::Parser; use std::cmp::Ordering; @@ -116,7 +116,7 @@ impl Assembler { self.fill() } - pub fn eval_context(&mut self, nodes: &[PNode]) -> Result<(), Vec> { + fn eval_context(&mut self, nodes: &[PNode]) -> Result<(), Vec> { let mut errors = Vec::new(); let mut current_macro = None; @@ -223,7 +223,7 @@ impl Assembler { } } - pub fn bundle(&mut self, nodes: &Vec) -> Result<(), Vec> { + fn bundle(&mut self, nodes: &Vec) -> Result<(), Vec> { let mut errors = Vec::new(); for node in nodes { diff --git a/lib/xixanta/src/mapping.rs b/lib/xixanta/src/mapping.rs index 0a73648..2859bbf 100644 --- a/lib/xixanta/src/mapping.rs +++ b/lib/xixanta/src/mapping.rs @@ -1,5 +1,5 @@ -use crate::assembler::Bundle; use crate::errors::EvalError; +use crate::object::Bundle; lazy_static! { /// An empty mapper used for testing purposes. -- cgit v1.2.3