Follow

rust code 

pretty sure there's another way of doing that, but for now I guess I'll go with `Err(err) => Err(err)` 馃し

re: rust code 

@nilsding you can do Err(err) => ()

re: rust code 

@noiob even if it's part of the return expression? as in the method returns a `Result<sometype, someothertype>`

re: rust code 

@nilsding ah sorry I misread doc.rust-lang.org/book/ch06-02

I guess you could try _ => _ but it would be advanced magic if it worked

re: rust code 

@noiob yeah no chance there, "`match` arms have incompatible types"

I guess the errrerr will stay here for now lmao

re: rust code 

@nilsding to errerr is human I guess

Sign in to participate in the conversation
pouncetodon

a furry mastodon instance [ art by angiewolfartist ]