Skip to content

Conversation

@SteveL-MSFT
Copy link
Member

PR Summary

Clippy had a new rule where it's idiomatic to use Option<&Type> instead of &Option<Type> so that the contents of the Option are passed by reference instead of the Option wrapper.

The counter part of this is that you now need to use .as_ref() with an Option so that the contents are referenced.

Also fixed one missed arg from --format to --output-format

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Dec 5, 2024
Merged via the queue into PowerShell:main with commit 47f2245 Dec 5, 2024
3 checks passed
@SteveL-MSFT SteveL-MSFT deleted the clippy-option branch December 5, 2024 18:40
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.

2 participants