rust/crates
bors[bot] f7fbea509f
Merge #8063
8063: couple clippy::complexity fixes r=matklad a=matthiaskrgr

avoid redundant `.into()` calls to convert T into identical T (`let x: String = String::from("hello").into();`)
use `if let Some(x)` instead of `.is_some()` + `.unwrap()`
don't clone Copy types
remove redundant wrapped ?s:  `Some(Some(3)?)` can just be `Some(3)`
use `.map(|x| y)` instead of `and_then(|x| Some(y)` on `Option`s

Co-authored-by: Matthias Krüger <matthias.krueger@famsik.de>
2021-03-17 08:12:34 +00:00
..
base_db avoid converting types into themselves via .into() (clippy::useless-conversion) 2021-03-17 01:27:56 +01:00
cfg Add runnables::related_tests 2021-02-27 18:00:17 +03:00
flycheck Bump cargo_metadata 2021-03-02 14:27:29 +02:00
hir avoid converting types into themselves via .into() (clippy::useless-conversion) 2021-03-17 01:27:56 +01:00
hir_def Merge #8063 2021-03-17 08:12:34 +00:00
hir_expand Merge #8063 2021-03-17 08:12:34 +00:00
hir_ty avoid converting types into themselves via .into() (clippy::useless-conversion) 2021-03-17 01:27:56 +01:00
ide don't clone types that are copy (clippy::clone_on_copy) 2021-03-17 01:56:31 +01:00
ide_assists use simpler .map(|x| y) instead of .and_then(|x| Some(y)) for Options. (clippy::bind_instead_of_map) 2021-03-17 02:36:29 +01:00
ide_completion don't clone types that are copy (clippy::clone_on_copy) 2021-03-17 01:56:31 +01:00
ide_db use simpler .map(|x| y) instead of .and_then(|x| Some(y)) for Options. (clippy::bind_instead_of_map) 2021-03-17 02:36:29 +01:00
ide_ssr don't clone types that are copy (clippy::clone_on_copy) 2021-03-17 01:56:31 +01:00
mbe don't clone types that are copy (clippy::clone_on_copy) 2021-03-17 01:56:31 +01:00
parser Fix macro expansion for statements w/o semicolon 2021-03-16 13:44:50 +08:00
paths Document paths items 2021-01-22 15:38:33 +01:00
proc_macro_api remove uselessly wrapped ?s. (clippy::meedless_question_mark 2021-03-17 02:19:40 +01:00
proc_macro_srv Add test for proc-macro meta info retrieval 2021-03-15 23:38:22 +08:00
proc_macro_test
profile add more counts 2021-01-27 12:39:19 +03:00
project_model some clippy::performance fixes 2021-03-15 10:19:59 +01:00
rust-analyzer remove uselessly wrapped ?s. (clippy::meedless_question_mark 2021-03-17 02:19:40 +01:00
stdx Cleanup decl_check 2021-02-05 16:09:45 +01:00
syntax avoid converting types into themselves via .into() (clippy::useless-conversion) 2021-03-17 01:27:56 +01:00
test_utils Add new_source_root meta to test fixtures 2021-03-16 15:28:02 +01:00
text_edit
toolchain
tt add expand log 2021-03-13 20:14:21 +08:00
vfs Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00
vfs-notify Fix slow tests sometimes failing 2021-02-12 16:31:16 +01:00