Introduction
Introduction Statistics Contact Development Disclaimer Help
Post AvGoV7dA4wVbNrYWgq by [email protected]
More posts by [email protected]
Post #AvGoUNTfftaKF6lIVk by [email protected]
0 likes, 0 repeats
function_name().map(|_|()).map_err( |e| e.into() )…that nonsense after functi…
Post #AvGoUNa3IAgmYtkOSO by [email protected]
0 likes, 0 repeats
@mcc a bunch of that should be possible to simplify using the ? operator?
Post #AvGoUNgQuRnEsgjUP2 by [email protected]
0 likes, 0 repeats
@mcc or do you specifically need it to *not* return from the function?there are…
Post #AvGoUNm6ZMKXAHO1FA by [email protected]
0 likes, 0 repeats
@r I'm trying to convert a Result<T, CustomError> into an anyhow::Res…
Post #AvGoUNrQFaaFQlsGX2 by [email protected]
0 likes, 0 repeats
@mcc in the most common use case of a function which is returning anyhow::Resul…
Post #AvGoUNwjvopxhGMVou by [email protected]
0 likes, 0 repeats
@r 1. It is the final line of the function2. I discard the success value becaus…
Post #AvGoUTayvczvDWEDjs by [email protected]
0 likes, 0 repeats
@mcc in that case, @porglezomp 's reply seems to be the best answer?
Post #AvGoV7dA4wVbNrYWgq by [email protected]
0 likes, 0 repeats
@mcc I don't understand the map_err bit...
Post #AvGoV7jXhDc3heXcdU by [email protected]
0 likes, 0 repeats
@kevin Neither do I but the code stops working without them :( I think it conve…
Post #AvGoVQNYNCJTWxOpV2 by [email protected]
0 likes, 0 repeats
@mcc @kevin that is exactly what it does
Post #AvLTdEPZcoMPU41ddw by [email protected]
0 likes, 0 repeats
@mcc FWIW, I think that looks fine and I'd use that code as-is, depending o…
You are viewing proxied material from pleroma.anduin.net. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.