about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--benches/benchmark.rs2
-rw-r--r--src/parser.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/benches/benchmark.rs b/benches/benchmark.rs
index d025152..eeee9ea 100644
--- a/benches/benchmark.rs
+++ b/benches/benchmark.rs
@@ -2,6 +2,8 @@ use correlation_rust::correlations::Compute;
 use criterion::{criterion_group, criterion_main, Criterion};
 use std::time::Duration;
 
+
+#[allow(unused_must_use)]
 fn criterion_benchmark(c: &mut Criterion) {
     c.bench_function("correlation with 300thousand rows", |b| {
         b.iter(|| {
diff --git a/src/parser.rs b/src/parser.rs
index c38166a..9a22198 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -35,6 +35,7 @@ pub struct CorrelationEvaluateRow {
 }
 
 impl CorrelationEvaluateRow {
+    #[allow(dead_code)]
     fn new(row_name: &str, x_vals: Vec<f64>, y_vals: Vec<f64>) -> Self {
         Self {
             row_name: String::from(row_name),