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

autopush: Enforce must_use on Db's update_user #496

Open
data-sync-user opened this issue Nov 1, 2023 · 0 comments
Open

autopush: Enforce must_use on Db's update_user #496

data-sync-user opened this issue Nov 1, 2023 · 0 comments
Assignees

Comments

@data-sync-user
Copy link
Collaborator

This now returns a boolean of whether the operation actually occurred due to a conditional on the db update. As a safety precaution calling code should be forced to #[must_use] the result to encourage them appropriately handling when an update doesn’t occur.

This would have to be implemented with something like a wrapper struct (e.g. MustUse<T>) around the bool.

┆Issue is synchronized with this Jira Task

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

No branches or pull requests

2 participants