-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: add config for inserting must_use in generate_enum_as_method
#13359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
d46acc9
to
4b44a1d
Compare
☔ The latest upstream changes (presumably #13399) made this pull request unmergeable. Please resolve the merge conflicts. |
eeb20d3
to
f32e9b6
Compare
f32e9b6
to
c4bdb8e
Compare
crates/ide-assists/src/handlers/generate_enum_projection_method.rs
Outdated
Show resolved
Hide resolved
6daf0d9
to
c2bdde9
Compare
c2bdde9
to
4bf9b9b
Compare
Weird, ubuntu one passed, but windows one failed |
crates/ide-assists/src/handlers/generate_enum_projection_method.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Lukas Wirth <[email protected]>
@bors r+ |
☀️ Test successful - checks-actions |
Should fix #13312
Didn't add a test because I was not sure on how to add test for a specific configuration option, tried to look for the usages for other
AssistConfig
variants but couldn't find any intests
. If there is a way to test this, do point me towards it.I tried to extract the formatting string as a common
template_string
and only have if-else for that, but it didn't compile :(Also it seems these tests are failing:
Can you also point me to how to correct these 😅 ( I guess there is some command to automatically generate these? )