-
Notifications
You must be signed in to change notification settings - Fork 14k
Open
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-langRelevant to the language teamRelevant to the language teamT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Related to #87196
I personally think insert is a more succinct and readable way than = Some(x) and this seems should be a style preference and don't get why it's marked as must_use.
what's more weird is Option::replace is not marked as must use, so the syntax is kind of inconsistent to me.
lolbinarycat and junbl
Metadata
Metadata
Assignees
Labels
C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-langRelevant to the language teamRelevant to the language teamT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.