Skip to content

refactor: missed lint message .to_string() change to .to_owned() - #3749

Merged
hippietrail merged 1 commit into
Automattic:masterfrom
hippietrail:more-lint-message-to-owned
Jul 2, 2026
Merged

refactor: missed lint message .to_string() change to .to_owned()#3749
hippietrail merged 1 commit into
Automattic:masterfrom
hippietrail:more-lint-message-to-owned

Conversation

@hippietrail

Copy link
Copy Markdown
Collaborator

Issues

Continues on from what was missed in #3569

Description

Back in #3569 I thought I changed all the message fields of Lints that were using .to_string() to standardize on .to_owned() after looking into why both were used and finding reasons that .to_owned() was probably the better one after all, despite my using .to_string() in most of my linters.

Before searching the repo I expected only the skeleton linters were still using .to_string() but there was a lot I was missing!

How Has This Been Tested?

cargo test

AI Disclosure

  • I am a human and didn't use any AI.
  • I used LLM features of my editor, but not an agent.
  • I used an AI agent interactively.
  • I am an agent or I got an agent to do the work autonomously.

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes
  • I have considered splitting this into smaller pull requests.

@hippietrail
hippietrail enabled auto-merge July 2, 2026 10:11
@hippietrail
hippietrail added this pull request to the merge queue Jul 2, 2026
Merged via the queue into Automattic:master with commit cade6f0 Jul 2, 2026
12 checks passed
@hippietrail
hippietrail deleted the more-lint-message-to-owned branch July 2, 2026 11:12
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