about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander_Kabui <alexanderkabua@gmail.com>2022-08-08 14:22:45 +0300
committerAlexander_Kabui <alexanderkabua@gmail.com>2022-08-08 14:22:45 +0300
commitffbdde29f6c2e53cfdefb7ec23fc754cacce546e (patch)
tree72d11b43b2e853c33b8e9de7c429612db4e63f27
parentf99caf05b12b6beac57d062483d8d278a7504ef9 (diff)
downloadcorrelation_rust-ffbdde29f6c2e53cfdefb7ec23fc754cacce546e.tar.gz
allow unused variables
-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),