From 3b4baeb1e7cbf0972f7a396906f91ccdb8286a9f Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Wed, 23 Dec 2015 20:08:53 -0500 Subject: [PATCH] Fix "private type in public interface" warnings. --- src/expr/syntax_tree.rs | 2 +- src/fmt/parasplit.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expr/syntax_tree.rs b/src/expr/syntax_tree.rs index 698564c72..7921e2d9a 100644 --- a/src/expr/syntax_tree.rs +++ b/src/expr/syntax_tree.rs @@ -15,7 +15,7 @@ use tokens::{Token}; type TokenStack = Vec<(usize, Token)>; -type OperandsList = Vec< Box >; +pub type OperandsList = Vec< Box >; #[derive(Debug)] pub enum ASTNode { diff --git a/src/fmt/parasplit.rs b/src/fmt/parasplit.rs index 01627f24a..f903b0846 100644 --- a/src/fmt/parasplit.rs +++ b/src/fmt/parasplit.rs @@ -58,7 +58,7 @@ impl Line { // each line's prefix has to be considered to know whether to merge it with // the next line or not #[derive(Debug)] -struct FileLine { +pub struct FileLine { line : String, indent_end : usize, // the end of the indent, always the start of the text pfxind_end : usize, // the end of the PREFIX's indent, that is, the spaces before the prefix