Skip to content

fix: redirect unwrap/expect diagnostic on Option/Result/Partial#294

Merged
ivov merged 1 commit into
mainfrom
unwrap-diagnostic
May 4, 2026
Merged

fix: redirect unwrap/expect diagnostic on Option/Result/Partial#294
ivov merged 1 commit into
mainfrom
unwrap-diagnostic

Conversation

@ivov
Copy link
Copy Markdown
Owner

@ivov ivov commented May 4, 2026

Calling .unwrap() or .expect() on Option<T>, Result<T, E>, or Partial<T, E> previously fell through to a similarity-based hint suggesting unwrap_or, which unhelpful when the inner type has no constructible default, e.g. an interface. The diagnostic now points at the canonical idioms instead.

@ivov ivov merged commit 9b99b08 into main May 4, 2026
11 checks passed
@ivov ivov mentioned this pull request May 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Released in lisette-v0.1.26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant