Skip to content
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

Tweaks from derived clap parser review #3834

Merged
merged 17 commits into from
May 17, 2024
Merged

Tweaks from derived clap parser review #3834

merged 17 commits into from
May 17, 2024

Conversation

djc
Copy link
Contributor

@djc djc commented May 16, 2024

Follow-up from #3596. I think none of this is really things that originated in that PR, just trying to improve the codebase as I notice stuff.

@djc djc requested a review from rami3l May 16, 2024 21:10
@@ -1515,12 +1518,6 @@ fn set_auto_self_update(cfg: &mut Cfg, auto_self_update_mode: &str) -> Result<ut
Ok(utils::ExitCode(0))
}

#[cfg_attr(feature = "otel", tracing::instrument(skip_all))]
Copy link
Member

Choose a reason for hiding this comment

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

A question for @rbtcollins: when do we decide that we need to instrument a function?

Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

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

Thank you so much for the work! I do think this has addressed many concerns I have had in terms of code readability :)

PS: There seems to be some comptime errors to be addressed, but this doesn't influence my approval.

@djc djc force-pushed the derive-tweaks branch from f39f2a7 to 0b9d098 Compare May 17, 2024 09:28
@djc djc force-pushed the derive-tweaks branch from 0b9d098 to 7ad0cc8 Compare May 17, 2024 10:31
@djc djc enabled auto-merge May 17, 2024 10:36
@djc djc added this pull request to the merge queue May 17, 2024
Merged via the queue into master with commit c268254 May 17, 2024
22 checks passed
@djc djc deleted the derive-tweaks branch May 17, 2024 11:07
@rami3l rami3l added this to the 1.28.0 milestone Jun 9, 2024
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