From c12c61cb0f34df3421b9e967e74c0603f9e44a0f Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 26 Dec 2016 01:13:35 -0800 Subject: fix tests --- src/modelica_model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modelica_model.rs b/src/modelica_model.rs index 1231546..785b8ae 100644 --- a/src/modelica_model.rs +++ b/src/modelica_model.rs @@ -170,7 +170,7 @@ impl ModelicaModelExt for ModelicaModel { } // Recurses through 'original', replacing all instances of 'a' with 'b' -fn substitute_with(original: &Expr, a: &Expr, b: &Expr) -> Expr { +pub fn substitute_with(original: &Expr, a: &Expr, b: &Expr) -> Expr { use modelica_parser::Expr::*; println!("original: {:?} replacing: {:?} with: {:?}", original, a, b); if *original == *a { -- cgit v1.2.3