Skip to content

Commit

Permalink
fix(compiler): Reduce scope of API
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 12, 2018
1 parent 1328e13 commit d8d6f66
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion liquid-compiler/src/block.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use liquid_error::Result;
use liquid_interpreter::Renderable;

use super::error::Result;
use super::LiquidOptions;
use super::TagBlock;
use super::TagTokenIter;
Expand Down
2 changes: 1 addition & 1 deletion liquid-compiler/src/include.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fs::File;
use std::io::prelude::Read;
use std::path;

use super::error::{Error, Result, ResultLiquidChainExt, ResultLiquidExt};
use liquid_error::{Error, Result, ResultLiquidChainExt, ResultLiquidExt};

pub trait Include: Send + Sync + IncludeClone {
fn include(&self, path: &str) -> Result<String>;
Expand Down
8 changes: 0 additions & 8 deletions liquid-compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ mod parser;
mod tag;
mod text;

pub mod error {
pub use liquid_error::*;
}

pub mod value {
pub use liquid_value::*;
}

pub use block::*;
pub use include::*;
pub use options::*;
Expand Down
2 changes: 1 addition & 1 deletion liquid-compiler/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
use std;

use liquid_error::{Error, Result};
use liquid_interpreter::Expression;
use liquid_interpreter::Renderable;
use liquid_interpreter::Variable;
use liquid_interpreter::{FilterCall, FilterChain};
use liquid_value::Scalar;
use liquid_value::Value;

use super::error::{Error, Result};
use super::LiquidOptions;
use super::ParseBlock;
use super::ParseTag;
Expand Down
2 changes: 1 addition & 1 deletion liquid-compiler/src/tag.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use liquid_error::Result;
use liquid_interpreter::Renderable;

use super::error::Result;
use super::LiquidOptions;
use super::TagTokenIter;

Expand Down
2 changes: 1 addition & 1 deletion liquid-compiler/src/text.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::io::Write;

use error::{Result, ResultLiquidChainExt};
use liquid_error::{Result, ResultLiquidChainExt};
use liquid_interpreter::Context;
use liquid_interpreter::Renderable;

Expand Down

0 comments on commit d8d6f66

Please sign in to comment.