rust-clippy/tests
Michael Wright 750a2d57bd Fix unnecessary_to_owned false positive
Fixes #9351.

Note that this commit reworks that fix for #9317. The change
is to check that the type implements `AsRef<str>` before regarding
`to_string` as an equivalent of `to_owned`. This was suggested
by Jarcho in the #9317 issue comments.

The benefit of this is that it moves some complexity out of
`check_other_call_arg` and simplifies the module as a whole.
2022-09-03 17:00:44 +02:00
..
test_utils Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
ui Fix unnecessary_to_owned false positive 2022-09-03 17:00:44 +02:00
ui-cargo Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup 2022-07-28 19:08:22 +02:00
ui-internal Merge commit '2b2190cb5667cdd276a24ef8b9f3692209c54a89' into clippyup 2022-08-11 19:42:16 +02:00
ui-toml Initial implementation of result_large_err 2022-08-30 17:39:40 +02:00
workspace_test Merge commit '97a5daa65908e59744e2bc625b14849352231c75' into clippyup 2022-01-13 13:18:19 +01:00
check-fmt.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
clippy.toml
compile-test.rs Implemented suspicious_to_owned lint to check if to_owned is called on a Cow. 2022-08-26 17:41:17 -07:00
dogfood.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
integration.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
lint_message_convention.rs Fix adjacent code 2022-08-16 18:34:51 -04:00
missing-test-files.rs
versioncheck.rs Merge commit '984330a6ee3c4d15626685d6dc8b7b759ff630bd' into clippyup 2022-04-08 10:06:10 +01:00
workspace.rs Fix adjacent code 2022-08-16 18:34:51 -04:00