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

Ref with lifetime-limited values and simpler any_compose #35

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DasLixou
Copy link
Contributor

No description provided.

@DasLixou
Copy link
Contributor Author

Warning

The lifetime borrow of StateScope could lead to illegally shortened lifetimes - need to check that

@DasLixou
Copy link
Contributor Author

DasLixou commented Nov 16, 2024

At least

let b = "";
{
    let muthack = use_mut(&cx, || b);
    muthack.with(move |c| {
        *c = &".".repeat(40).as_str();
    });
}

doesn't work..

@matthunz matthunz force-pushed the main branch 2 times, most recently from 10b82d8 to 326e62c Compare November 18, 2024 08:27
@matthunz matthunz force-pushed the main branch 3 times, most recently from 72f2ae5 to 5ae0a51 Compare December 9, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants