Skip to content

Fix clippy warnings in quiz3 solution - #2422

Merged
senekor merged 1 commit into
rust-lang:mainfrom
sobhanmohammadi-dev:fix-quiz3-clippy
Jul 18, 2026
Merged

senekor merged 1 commit into
rust-lang:mainfrom
sobhanmohammadi-dev:fix-quiz3-clippy

Conversation

@sobhanmohammadi-dev

Copy link
Copy Markdown
Contributor

Description

Fixes clippy warnings in the quiz3 solution caused by unnecessary references in format!.

Changes

  • Removed redundant & references from format! arguments.

@senekor senekor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks.

@senekor
senekor merged commit 734461f into rust-lang:main Jul 18, 2026
7 checks passed
@claudiofreitas

claudiofreitas commented Aug 22, 2026 •

Copy link
Copy Markdown

I just noticed this PR while I was writing a message in this repo's discussion to ask about the warnings.

I was confused if I understood the exercise incorrectly, because it was the first time I was left with warnings after solving it.

This PR solves the solution file, but the exercise file is still left with the &. Should I open a PR to remove the reference symbols (&) from the exercise file as well?

&self.student_name, &self.student_age, &self.grade,

@senekor

senekor commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Thanks, fixed in 277e369.

@claudiofreitas

Copy link
Copy Markdown

So quick! Thank you so much!!

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.

3 participants