Ada Alakbarova
Ada Alakbarova
Fixes rust-lang/rust-clippy#14971 WIP because: - [ ] is there a way to remove the block braces from the suggestion? - [ ] I guess the "Known problems" section is not...
Here's the drop-down menu I'm talking about (in the top-right corner): The problem is that, to select one of the actions (e.g. "Remove"), one needs to put the mouse exactly...
I've just installed Cosmic (very excited!), and while going through the settings, I clicked on Applications>Default Applications; it took like 2 seconds to load, which is.. not the end of...
For example, instead of `collect`ing chars into a `String` and then `write`-ing that, `write` each char individually
Resolves https://github.com/rust-lang/rust-clippy/issues/8824 Supersedes https://github.com/rust-lang/rust-clippy/pull/15828 -- I wasn't able to get `TyCtxt::in_scope_traits` to work, so here's a more basic implementation that just adds a note about the possible need to import...
Fixes https://github.com/rust-lang/rust-clippy/issues/15003 changelog: [`transmute_ptr_to_ptr`]: add parens if `transmute` is receiver of a projection
Resurrects https://github.com/rust-lang/rust-clippy/pull/13475 changelog: [`unnecessary_fold`]: lint on `fold`s with `Add::add`/`Mul::mul`
Fixes https://github.com/rust-lang/rust-clippy/issues/15307 Supersedes https://github.com/rust-lang/rust-clippy/pull/15759 Unfortuntaly, avoiding the ugliness in the suggestion seems to require adding a bit of ugliness to the lint emission logic: Previously, both `InsertSearchResult::snippet_{occupied,vacant}` called `InsertionSearchResult::snippet` for...
changelog: [`op_ref`]: give suggestions with smaller diffs
### Summary Take this code: ```rs fn issue16193(opt: Option) -> Option { if let Some(n) = opt { log::trace!("this will expand to nothing"); Some(n + 1) } else { None...