Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
pkolaczk
5y ago
0 comments
Save
Share
It doesn't only WARN about ignoring an error, it refuses to compile. T and Result<T, E> are different types.
0 comments
3 comments · 2 top-level
top
newest
oldest
saturn_vk
5y ago
· 1 in thread
I've always wondered whether "unwrap"-ing is considered ignoring? I personally always equated it to ignoring if there's an error
steveklabnik
5y ago
I would say no, because it's not ignored. It makes it explode.
kd5bjo
5y ago
The warning comes if you try to call a function for its side effects and ignore the return value. In most cases it’s fine, but ignoring a Result or a Future will issue a warning.
j
/
k
navigate · click thread line to collapse