Skip to content

Fix clippy::useless_borrows_in_formatting warnings in dining philosophers exercise - #3246

Open
dvrdnz wants to merge 1 commit into
google:mainfrom
dvrdnz:upstream-dining-philosophers-fix
Open

Fix clippy::useless_borrows_in_formatting warnings in dining philosophers exercise#3246
dvrdnz wants to merge 1 commit into
google:mainfrom
dvrdnz:upstream-dining-philosophers-fix

Conversation

@dvrdnz

@dvrdnz dvrdnz commented Jul 27, 2026

Copy link
Copy Markdown

Fixes clippy::useless_borrows_in_formatting warnings introduced by newer
clippy versions in the dining philosophers exercise. Removes redundant &
references in format!/println! calls — no behavior change, String
and &String both implement Display.

Same category of fix as #3245, kept as a separate PR since it's an
unrelated file/exercise.

@google-cla

google-cla Bot commented Jul 27, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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