about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-03-14 04:03:24 +0900
committerGitHub <noreply@github.com>2020-03-14 04:03:24 +0900
commit8e17c8366c48f78f0fafe03c311cb0fd9b66ec50 (patch)
treeaa49ba5f5b538e93b66790a858a31688e710ce9a /src/test/rustdoc-ui/coverage/json.rs
parent35df9cca7c425d999cf98e4b852fbcb584fbbd7d (diff)
parent83511383706e069bc7c6b3a7d957846ad51e818f (diff)
downloadrust-8e17c8366c48f78f0fafe03c311cb0fd9b66ec50.tar.gz
rust-8e17c8366c48f78f0fafe03c311cb0fd9b66ec50.zip
Rollup merge of #69802 - matthiaskrgr:cl1ppy, r=Dylan-DPC
fix more clippy findings

* reduce references on match patterns (clippy::match_ref_pats)
* Use writeln!(fmt, "word") instead of write!(fmt, "word\n") (clippy::write_with_newline)
* libtest: remove redundant argument to writeln!() (clippy::writeln_empty_string)
* remove unneeded mutable references (cippy::unnecessary_mut_passed)
* libtest: declare variables as floats instead of casting them (clippy::unnecessary_cast)
* rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes)
* call .as_deref() instead of .as_ref().map(Deref::deref) (clippy::option_as_ref_deref)
* iterate over a maps values directly. (clippy::for_kv_map)
* rustdoc: simplify boolean condition (clippy::nonminimal_bool)
* Use ?-operator in more places (clippy::question_mark, had some false negatives fixed recently)
* rustdoc: Use .any(p) instead of find(p).is_some(). (clippy::search_is_some)
* rustdoc: don't call into_iter() on iterator. (clippy::identity_conversion)
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions