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

ref(utils): Remove allow(dead_code) from update utils #2216

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

szokeasaurusrex
Copy link
Member

Instead, mark all code that is not needed for the managed build with cfg(not(feature = "managed")).

Instead, mark all code that is not needed for the `managed` build with `cfg(not(feature = "managed"))`.
@@ -175,10 +184,12 @@ pub fn get_latest_sentrycli_release() -> Result<SentryCliUpdateInfo> {
})
}

#[cfg(not(feature = "managed"))]
pub fn can_update_sentrycli() -> bool {
Copy link
Member Author

Choose a reason for hiding this comment

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

I wonder whether this function is even necessary. Ideally, we would distribute to package managers the managed build, so that this function would always return true.

src/utils/update.rs Outdated Show resolved Hide resolved
@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) November 5, 2024 14:56
@szokeasaurusrex szokeasaurusrex merged commit c9d83eb into master Nov 5, 2024
14 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/dead-code-update branch November 5, 2024 14:58
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