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 7, 2025
1 parent
3014f00
commit 55d61df
Showing
4 changed files
with
233 additions
and
9 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
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