wisha

joined 5 years ago
[โ€“] wisha@lemmy.ml 18 points 1 month ago* (last edited 1 month ago)

You are running into the Send Approximation being too conservative. The compiler does not like to see a let binding for a non-Send type and an .await statement in the same scope. It is not (yet) smart enough to know that the non-Send type is already consumed by the time of the .await.

You've already discovered the workaround in your three(). To make it more concise

async fn four() {
    let content = do_stuff().err().map(|err| err.to_string());
    if let Some(content) = content {
        let _ = do_stuff_2(content).await;
    }
}
[โ€“] wisha@lemmy.ml 29 points 10 months ago (35 children)

Does any GNOME user here use X11? On my computer I have been exclusively using Wayland for 3 years. It's great.

Slightly concerned about remote desktopping though. What do I replace xrdp with?

 

cross-posted from: https://lemmy.ml/post/13397700

Malicious KDE theme can wipe out all your data

Or is it just buggy?