Skip to content

Commit

Permalink
chore: --features load-onnxruntimeでClippyをかける (#925)
Browse files Browse the repository at this point in the history
`compatible_engine`に対してもClippyがかかるようにする。
  • Loading branch information
qryxip authored Jan 17, 2025
1 parent c6f60b8 commit 7824e26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion crates/voicevox_core_c_api/src/compatible_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static VOICE_MODEL_SET: LazyLock<VoiceModelSet> = LazyLock::new(|| {
.and_then(|entries| entries.collect::<std::result::Result<Vec<_>, _>>())
.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::<std::result::Result<_, _>>()
.unwrap()
Expand Down

0 comments on commit 7824e26

Please sign in to comment.