Skip to content

fix unnecessary casting and resulting clippy warning.#594

Closed
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:fix-unnecessary-string-casting
Closed

fix unnecessary casting and resulting clippy warning.#594
moritz-gross wants to merge 1 commit into
daisy:mainfrom
moritz-gross:fix-unnecessary-string-casting

Conversation

@moritz-gross

@moritz-gross moritz-gross commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

type &'static str instead of String is ok.

type &'static str instead of String is ok.
@moritz-gross moritz-gross requested a review from NSoiffer June 7, 2026 00:15
@moritz-gross

moritz-gross commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator Author

@NSoiffer some code you uncommented 2 commits ago causes cargo clippy in CI to fail.

@moritz-gross moritz-gross self-assigned this Jun 7, 2026
@moritz-gross moritz-gross added the rust Coding in Rust label Jun 7, 2026
@NSoiffer

NSoiffer commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Already fixed

@NSoiffer NSoiffer closed this Jun 8, 2026
@moritz-gross

moritz-gross commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

wait, what am I missing? it's still failing in the latest commit.

image

@NSoiffer

NSoiffer commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

That's strange. I know I fixed it. Maybe I forgot to do a push?

I made sure I did a push this time. In addition to fixing those warnings, there is some commented out code that contains the same problems. I fixed those also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rust Coding in Rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants