Rust compiler be like

= note: expected `Box<&mut str>`
found `Box<&mut str>`

bRuH

@petrisch Both lines have an anonymous lifetime, but the lifetimes were incompatible. Should maybe be corrected, but when you give the lifetimes an explicit name, you realize what's going on. (I was aware of lifetime issues around that part of the code, so I didn't have to troubleshoot this.)

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml