Clippy raising warnings on all my tests because... I did not document that the function could panic.
... Yeah? That's the dirting goal?
#[allow] or expect that lint on the tests module though, at least
allow directive on all imports 

flori_ava_star:~
🔜@DS26
@star@amazonawaws.comtest enabled and one without? i forget if cargo clippy has test on by default


flori_ava_star:~
🔜@DS26
@star@amazonawaws.comcfg_attr(test, ...) only applies for things compiled under the test environment, such as test modules marked #[cfg(test)], or tests themselves; ...if I am not mistaken
--all-targets does indeed seem to just check it (at least) twice, once with cfg(test) and once without. which, i guess makes sense given the name.cfg!(test) == true (or == false), both of which will fail when clippy's compiling the code for the other one.)


flori_ava_star:~
🔜@DS26
@star@amazonawaws.comcargo clippy --all-targets and cfg_attr(test, ...) seems to behave as desired here(any lint failures outside of test modules will be warned on).

flori_ava_star:~
🔜@DS26
@star@amazonawaws.com