@fredvanzwieten Looks fine. Run `cargo build` and it should give you a clear explanation of what it wants. Or if it builds fine, it means you've ran into an edge case where rust-analyzer is mistaken.
@fredvanzwieten@kornel did you accidentally shadow the Ok enum somehow? Either via another import or some bad code higher up in the function? If you are able, try sharing more of your code as the problem may be outside what you've shared so far.