forked from mdeloof/statig
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Mutable access to `Inner` is required for ergonomic unit testing. Solution: Add `inner` and `inner_mut` to: - `awaitable::state_machine{UninitializedStateMachine, InitializedStateMachine}` - `blocking::state_machine{UninitializedStateMachine, InitializedStateMachine}` Mark the methods as `unsafe` for the case of an `InitializedStateMachine` to force users to think critically about mutating in thise case. Testing: `cargo test` Issue: mdeloof#34
- Loading branch information
Christian Heussy
committed
Jan 11, 2025
1 parent
bf6457a
commit 9a59d54
Showing
5 changed files
with
360 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.