Skip to content

fix(lint): clippy -D warnings の既存違反を解消#17

Merged
hitalin merged 1 commit into
mainfrom
fix/clippy-warnings
Jun 7, 2026
Merged

fix(lint): clippy -D warnings の既存違反を解消#17
hitalin merged 1 commit into
mainfrom
fix/clippy-warnings

Conversation

@hitalin

@hitalin hitalin commented Jun 7, 2026

Copy link
Copy Markdown
Owner

なぜ

CI の cargo clippy --all-targets -- -D warnings が main で失敗していた。これらは #574 (muted_user_ids) 由来ではなく、以前から存在した clippy 違反が -D warnings で顕在化したもの。main を green に戻し、後続 PR をブロックしないようにする。

何を

  • db.rs load_chat_messages: for row in rows { if let Ok(m) = row {...} }for m in rows.flatten() (clippy::manual_flatten)
  • models.rs テスト: assert_eq!(x, true) / assert_eq!(x, false)assert!(x) / assert!(!x) (clippy::bool_assert_comparison)

挙動は不変。cargo clippy --all-targets -- -D warningscargo test (152 passed) green を確認。

🤖 Generated with Claude Code

CI の cargo clippy --all-targets -- -D warnings が main で落ちていた
(#574 由来ではない既存違反)。

- db.rs: load_chat_messages の if let Ok を rows.flatten() に (manual_flatten)
- models.rs: assert_eq!(_, bool) を assert!/assert!(!_) に (bool_assert_comparison)
@hitalin hitalin self-assigned this Jun 7, 2026
@hitalin hitalin merged commit 9f9ad53 into main Jun 7, 2026
1 check passed
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