Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Sep 16, 2023
1 parent 1e454ae commit 077c722
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test-rt/test-tflite/suite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ use regex::Regex;
use suite_unit::conv_f32::{ConvProblem, ConvProblemParams};
use suite_unit::conv_q::{QConvProblem, QConvProblemParams};

#[allow(clippy::needless_update)]
pub fn suite() -> &'static infra::TestSuite {
lazy_static::lazy_static! {
static ref SUITE: infra::TestSuite = mk_suite();
};
&*SUITE
&SUITE
}

#[allow(clippy::needless_update)]
fn mk_suite() -> infra::TestSuite {
let mut onnx = suite_onnx::suite().clone();
onnx.ignore(&ignore_onnx);
Expand All @@ -33,7 +33,7 @@ fn mk_suite() -> infra::TestSuite {
fn patterns(s: &str) -> Vec<Regex> {
s.trim()
.lines()
.map(|s| s.split_once("#").map(|(left, _)| left).unwrap_or(s).trim())
.map(|s| s.split_once('#').map(|(left, _)| left).unwrap_or(s).trim())
.filter(|s| !s.is_empty())
.map(|pat| Regex::new(pat).unwrap())
.collect()
Expand Down Expand Up @@ -91,7 +91,6 @@ fn ignore_onnx(t: &[String]) -> bool {
test_selu
test_thresholdrelu
",

);
let excluded = patterns("
test_slice_start_out_of_bounds
Expand Down

0 comments on commit 077c722

Please sign in to comment.