Skip to content

Merge MasonryState into MainState - #1846

Closed
HigherOrderLogic wants to merge 1 commit into
linebender:mainfrom
HigherOrderLogic:refactor/state
Closed

HigherOrderLogic wants to merge 1 commit into
linebender:mainfrom
HigherOrderLogic:refactor/state

Conversation

@HigherOrderLogic

Copy link
Copy Markdown
Contributor

More progress on #1836.

Would love to get some feedback on the use of the optional AppDriver. I cant think of any better way to execute it.

@PoignardAzur

PoignardAzur commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

Looks good on first glance.

I'm not super clear what MainState ::with_app_driver is supposed to do, will need to look closer.

@HigherOrderLogic

Copy link
Copy Markdown
Contributor Author

I'm not super clear what MainState ::with_app_driver is supposed to do, will need to look closer.

It's just a private helper to not repeating taking the app driver out of the Option wrapper.

@PoignardAzur

Copy link
Copy Markdown
Collaborator

Sorry for the radio silence, I've been sick.

Would love to get some feedback on the use of the optional AppDriver. I cant think of any better way to execute it.

I see that it's a way to get around the lifetime issues you get from merging the two types. If we have to add this kind of hack, I'd rather we keep the two types separate for now and do a deeper refactor later.

@HigherOrderLogic

Copy link
Copy Markdown
Contributor Author

I'll close the PR then.

@HigherOrderLogic
HigherOrderLogic deleted the refactor/state branch September 14, 2026 12:03
@PoignardAzur

Copy link
Copy Markdown
Collaborator

Yeah, sorry if that's unsatisfying.

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