Skip to content

Commit df42e59

Browse files
committed
Prepare for crates.io publication
- Fix unused variable warnings in tests - Remove unused imports - Ready for v0.3.0 release
1 parent e352557 commit df42e59

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

examples/scientific_computing.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use mathcore::parser::Parser;
2-
use mathcore::{
3-
differential::{DifferentialEquations, PDESolver},
4-
MathCore,
5-
};
2+
use mathcore::differential::{DifferentialEquations, PDESolver};
63

74
fn main() {
85
println!("Scientific Computing Examples\n");

tests/integration_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn test_complete_workflow() {
66
let math = MathCore::new();
77

88
// Parse expression
9-
let expr = MathCore::parse("x^2 + 2*x + 1").unwrap();
9+
let _expr = MathCore::parse("x^2 + 2*x + 1").unwrap();
1010

1111
// Evaluate with variables
1212
let mut vars = HashMap::new();
@@ -15,10 +15,10 @@ fn test_complete_workflow() {
1515
assert_eq!(result, 16.0);
1616

1717
// Differentiate
18-
let derivative = MathCore::differentiate("x^2 + 2*x + 1", "x").unwrap();
18+
let _derivative = MathCore::differentiate("x^2 + 2*x + 1", "x").unwrap();
1919

2020
// Integrate
21-
let integral = MathCore::integrate("2*x + 2", "x").unwrap();
21+
let _integral = MathCore::integrate("2*x + 2", "x").unwrap();
2222

2323
// Solve equation
2424
let roots = MathCore::solve("x^2 + 2*x + 1", "x").unwrap();

0 commit comments

Comments
 (0)