rust-analyzer/crates/ide-diagnostics/src/handlers
Yuri Astrakhan 1d59c7b667 Remove non-needed clones
I am not certain if this will improve performance,
but it seems having a .clone() without any need should be removed.

This was done with clippy, and manually reviewed:

```
cargo clippy --fix -- -A clippy::all -D clippy::redundant_clone
```
2022-12-23 02:20:03 -05:00
..
break_outside_of_loop.rs Properly handle break resolution inside non-breakable expressions 2022-09-01 14:54:47 +02:00
field_shorthand.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
inactive_code.rs Collect diagnostics in queries instead of nameres 2022-09-26 19:06:29 +01:00
incorrect_case.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
invalid_derive_target.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
json_is_not_rust.rs Remove non-needed clones 2022-12-23 02:20:03 -05:00
macro_error.rs fix: Fix nested macro diagnostics pointing at macro expansion files 2022-11-19 10:32:32 +01:00
malformed_derive.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
mismatched_arg_count.rs internal: extract common code for adjusting diagnostic range 2022-07-23 22:24:44 +01:00
missing_fields.rs Restructure find_path into a separate functions for modules and non-module items 2022-09-13 15:15:27 +02:00
missing_match_arms.rs Implement unstable RFC 1872 exhaustive_patterns 2022-08-31 20:17:54 +05:00
missing_unsafe.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
no_such_field.rs Fix tests that depended on loose visibility restriction 2022-11-11 20:31:46 +09:00
replace_filter_map_next_with_find_map.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
type_mismatch.rs Fix tests by using primitive rather than String. 2022-09-16 16:56:19 -05:00
unimplemented_builtin_macro.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
unlinked_file.rs Run cargo fmt 2022-07-20 15:06:15 +02:00
unresolved_extern_crate.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
unresolved_import.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
unresolved_macro_call.rs fix: Fix nested macro diagnostics pointing at macro expansion files 2022-11-19 10:32:32 +01:00
unresolved_module.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00
unresolved_proc_macro.rs fix: Fix nested macro diagnostics pointing at macro expansion files 2022-11-19 10:32:32 +01:00
useless_braces.rs Fix tests that depended on loose visibility restriction 2022-11-11 20:31:46 +09:00