Skip to content

fix(ci): clippy/fmt 위반 수정 — PR #95 test 코드 (main 복구)#97

Merged
hang-in merged 1 commit into
mainfrom
fix/clippy-map-clone-pr95
May 28, 2026
Merged

fix(ci): clippy/fmt 위반 수정 — PR #95 test 코드 (main 복구)#97
hang-in merged 1 commit into
mainfrom
fix/clippy-map-clone-pr95

Conversation

@hang-in

@hang-in hang-in commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

PR #95 (#94 fix) 가 fork PR 이라 GitHub 이 maintainer approval 전까지 workflow 를 보류 → CI 미실행으로 clippy/fmt 위반이 main 에 머지됨. main CI 가 failure 상태 (run 26605390207).

Fix

  • crates/secall-core/src/search/embedding.rs test 코드:
    • texts.iter().map(|s| *s).collect::<Vec<_>>()&texts (배열→슬라이스 coerce). clippy::map_clone + clippy::iter_cloned_collect 해소.
    • 동 test 의 fmt 위반 (이중 빈 줄) 정리.

Test plan

  • cargo clippy --workspace --all-targets -- -D warnings clean
  • cargo fmt --all -- --check clean

긴급 main 복구용 hotfix 입니다.

🤖 Generated with Claude Code

PR #95 (#94 fix) 가 fork PR 이라 CI 가 자동 실행되지 않아 clippy/fmt 위반이
main 에 들어가 main CI 가 failure 상태였음.

- `embedding.rs:1011` `texts.iter().map(|s| *s).collect::<Vec<_>>()` →
  `&texts` (배열→슬라이스 coerce). map_clone + iter_cloned_collect 해소.
- 동 test 코드의 fmt 위반 (빈 줄) 정리.

검증: cargo clippy --workspace --all-targets -D warnings + fmt --check 모두 clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request reformats the session builder initialization across multiple lines, simplifies a test case by passing a reference directly instead of mapping and collecting, and cleans up minor whitespace. There are no review comments, so I have no feedback to provide.

@hang-in hang-in merged commit 346f402 into main May 28, 2026
3 checks passed
@hang-in hang-in deleted the fix/clippy-map-clone-pr95 branch May 28, 2026 22:39
@hang-in hang-in mentioned this pull request May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant