diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 11:46:29 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 11:46:29 +0100 |
| commit | 864702da68ec69ee92e47e77a65c5a86ba200201 (patch) | |
| tree | 0a89dcb9dcb8bb0455f649c1cfd63ce8f4a02cad /lib/xixanta/src | |
| parent | eb7fff6c62e028e6cdc412266937402412be500d (diff) | |
| download | tools.nes-864702da68ec69ee92e47e77a65c5a86ba200201.tar.gz tools.nes-864702da68ec69ee92e47e77a65c5a86ba200201.zip | |
Remove unneeded public references
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à <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src')
| -rw-r--r-- | lib/xixanta/src/assembler.rs | 6 | ||||
| -rw-r--r-- | 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<Error>> { + fn eval_context(&mut self, nodes: &[PNode]) -> Result<(), Vec<Error>> { let mut errors = Vec::new(); let mut current_macro = None; @@ -223,7 +223,7 @@ impl Assembler { } } - pub fn bundle(&mut self, nodes: &Vec<PNode>) -> Result<(), Vec<Error>> { + fn bundle(&mut self, nodes: &Vec<PNode>) -> Result<(), Vec<Error>> { 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. |
