autopush-rs icon indicating copy to clipboard operation
autopush-rs copied to clipboard

autopush: Enforce must_use on Db's update_user

Open data-sync-user opened this issue 8 months ago • 0 comments

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

data-sync-user avatar Nov 01 '23 00:11 data-sync-user