diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2a518cd72..43db87dbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,8 +72,8 @@ jobs: with: python-version: "3.10" - uses: Swatinem/rust-cache@v2 - - run: cargo clippy -v --tests -- -D clippy::all -D warnings --no-deps - - run: cargo clippy -v -- -D clippy::all -D warnings --no-deps + - run: cargo clippy -v --features load-onnxruntime --tests -- -D clippy::all -D warnings --no-deps + - run: cargo clippy -v --features load-onnxruntime -- -D clippy::all -D warnings --no-deps - run: cargo clippy -v -p voicevox_core -p voicevox_core_c_api --features link-onnxruntime --tests -- -D clippy::all -D warnings --no-deps - run: cargo clippy -v -p voicevox_core -p voicevox_core_c_api --features link-onnxruntime -- -D clippy::all -D warnings --no-deps - run: cargo fmt -- --check diff --git a/crates/voicevox_core_c_api/src/compatible_engine.rs b/crates/voicevox_core_c_api/src/compatible_engine.rs index 8f8feec2e..793a224c8 100644 --- a/crates/voicevox_core_c_api/src/compatible_engine.rs +++ b/crates/voicevox_core_c_api/src/compatible_engine.rs @@ -96,7 +96,7 @@ static VOICE_MODEL_SET: LazyLock = LazyLock::new(|| { .and_then(|entries| entries.collect::, _>>()) .unwrap_or_else(|e| panic!("{}が読めませんでした: {e}", root_dir.display())) .into_iter() - .filter(|entry| entry.path().extension().map_or(false, |ext| ext == "vvm")) + .filter(|entry| entry.path().extension().is_some_and(|ext| ext == "vvm")) .map(|entry| voicevox_core::blocking::VoiceModelFile::open(entry.path()).map(Arc::new)) .collect::>() .unwrap()