Skip to content

build(lint): prefer to_owned with clippy str_to_string - #20

Merged
furedea merged 1 commit into
mainfrom
build/prefer-to-owned-with-clippy
Nov 15, 2026
Merged

furedea merged 1 commit into
mainfrom
build/prefer-to-owned-with-clippy

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

概要

  • Cargo.toml の [lints.clippy] に str_to_string = "warn" を追加しました.
  • 全ターゲットで clippy を実行し,違反がないことを確認しました(修正不要).

理由

  • &str から String への変換に to_owned を使うことで,借用から所有への変換という意図が明確になります.
  • 変換方法の書き方が統一されます.

Refs furedea/agent-config#74

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@furedea

furedea commented Nov 14, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T17:32:13.443240Z 2c03444 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 2c03444346

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown

Review summary

No findings. The change adds str_to_string = "warn" to [lints.clippy]. That lint is a real clippy restriction lint, so it has to be enabled explicitly, and adding it here is the right way to do that. Nothing in src/ calls .to_string() on a &str, so CI (cargo clippy -- -D warnings) and the lefthook pre-commit hook will still pass. This is lint configuration only, so it needs no tests.

Blocking findings (P0/P1): 0

@furedea
furedea merged commit 26b8566 into main Nov 15, 2026
31 of 33 checks passed
@furedea
furedea deleted the build/prefer-to-owned-with-clippy branch November 15, 2026 13:15
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