-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-lintArea: New lintsArea: New lintsL-guidelinesLint: Related to the Rust API GuidelinesLint: Related to the Rust API GuidelinesL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codeT-middleType: Probably requires verifiying typesType: Probably requires verifiying typesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
Description
Now that it's easy to construct Rc<str>
and Rc<[T]>
using into()
, we should advise people to use them.
Especially Rc<String>
is often advised to avoid cloning strings, but has no advantages (except if you want to use get_mut
) and is a) larger, b) has one more pointer to chase, and c) doesn't implement Borrow<str>
.
compressed and oilaba
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsL-guidelinesLint: Related to the Rust API GuidelinesLint: Related to the Rust API GuidelinesL-unnecessaryLint: Warn about unnecessary codeLint: Warn about unnecessary codeT-middleType: Probably requires verifiying typesType: Probably requires verifiying typesgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy