rust-clippy icon indicating copy to clipboard operation
rust-clippy copied to clipboard

configurably allow `useless_vec` in tests

Open llogiq opened this issue 1 year ago • 2 comments

This adds a àllow-useless-vec-in-test configuration which, when set to true will allow the useless_vec lint in #[test] functions and code within #[cfg(test)]. It also moves a is_in_test helper to clippy_utils.


changelog: configurably allow [useless_vec] in test code

llogiq avatar Apr 27 '24 22:04 llogiq

r? @Jarcho

rustbot has assigned @Jarcho. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

rustbot avatar Apr 27 '24 22:04 rustbot

Jarcho seems to be busy recently, so perhaps r? @blyxyas

llogiq avatar Apr 28 '24 07:04 llogiq

@bors r+

blyxyas avatar Apr 28 '24 19:04 blyxyas

:pushpin: Commit db40ab45dac590d2435367e359ff350675f9b4bc has been approved by blyxyas

It is now in the queue for this repository.

bors avatar Apr 28 '24 19:04 bors

:hourglass: Testing commit db40ab45dac590d2435367e359ff350675f9b4bc with merge 5300d45877f09541463c692a6220985945d7a664...

bors avatar Apr 28 '24 19:04 bors

:broken_heart: Test failed - checks-action_test

bors avatar Apr 28 '24 19:04 bors

@bors r+

blyxyas avatar Apr 28 '24 20:04 blyxyas

:pushpin: Commit 87efce4fa22f51075e1fd25904f757f783eebfdc has been approved by blyxyas

It is now in the queue for this repository.

bors avatar Apr 28 '24 20:04 bors

:hourglass: Testing commit 87efce4fa22f51075e1fd25904f757f783eebfdc with merge e68fcb09734cc63ddbac7c0263a9d1b6e2549cd5...

bors avatar Apr 28 '24 20:04 bors

:sunny: Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test Approved by: blyxyas Pushing e68fcb09734cc63ddbac7c0263a9d1b6e2549cd5 to master...

bors avatar Apr 28 '24 20:04 bors