-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Clarify example for type_complexity
#13392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
clippy_lints/src/types/mod.rs
Outdated
| /// ### Example | ||
| /// ```no_run | ||
| /// # use std::rc::Rc; | ||
| /// type InnerType = Vec<Vec<Box<(u32, u32, u32, u32)>>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: The example could be even more helpful if the types were named by what they supposedly represent, instead of having purely technical names. PointMatrix (or whatever) instead of InnerType, and SharedPointMatrix instead of RcInnerType. Then let shared_matrix: SharedPointMatrix = Rc::new(inner_data).
9392541 to
bc7d323
Compare
|
r? clippy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
|
@bors r+ |
|
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
As mentioned #13387 it's not clear how to fix issue with complexity so add example for this
changelog: none