diff options
| author | Alexander_Kabui <alexanderkabua@gmail.com> | 2022-08-08 14:22:45 +0300 |
|---|---|---|
| committer | Alexander_Kabui <alexanderkabua@gmail.com> | 2022-08-08 14:22:45 +0300 |
| commit | ffbdde29f6c2e53cfdefb7ec23fc754cacce546e (patch) | |
| tree | 72d11b43b2e853c33b8e9de7c429612db4e63f27 | |
| parent | f99caf05b12b6beac57d062483d8d278a7504ef9 (diff) | |
| download | correlation_rust-ffbdde29f6c2e53cfdefb7ec23fc754cacce546e.tar.gz | |
allow unused variables
| -rw-r--r-- | benches/benchmark.rs | 2 | ||||
| -rw-r--r-- | src/parser.rs | 1 |
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), |
