aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-12-26 01:13:35 -0800
committerbnewbold <bnewbold@robocracy.org>2016-12-26 01:14:32 -0800
commitc12c61cb0f34df3421b9e967e74c0603f9e44a0f (patch)
treedcff0b8665040aaa53c5897c7e74e940ded5d6c6 /src
parent7168804b8a555f1ecfb11d595c63384fda7a8f6f (diff)
downloadmodelthing-c12c61cb0f34df3421b9e967e74c0603f9e44a0f.tar.gz
modelthing-c12c61cb0f34df3421b9e967e74c0603f9e44a0f.zip
fix tests
Diffstat (limited to 'src')
-rw-r--r--src/modelica_model.rs2
1 files changed, 1 insertions, 1 deletions
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 {