1
Fork 0
rust/src/librustdoc/html
Dylan DPC 67d735c4bf
Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPC
even more clippy cleanups

* Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed)
* Use more efficient &&str to String conversion (clippy::inefficient_to_string)
* Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call)
* Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg)
* Use simple 'for i in x' loops instead of 'while let Some(i) = x.next()' loops on iterators. (clippy::while_let_on_iterator)
* Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
* Remove redundant patterns when matching ( x @ _  to  x) (clippy::redundant_pattern)
2020-03-05 22:04:10 +01:00
..
markdown Normalize syntax::edition imports. 2020-01-02 19:31:38 +01:00
render use .iter() instead of .into_iter() on references. 2020-02-29 03:14:01 +01:00
static Auto merge of #68668 - GuillaumeGomez:struct-variant-field-search, r=ollie27 2020-02-15 22:32:51 +00:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs Format the world 2019-12-22 17:42:47 -05:00
format.rs Rename FunctionRetTy to FnRetTy 2020-02-17 11:24:29 +09:00
highlight.rs Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
item_type.rs Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) 2020-03-05 16:38:24 +01:00
layout.rs Format the world 2019-12-22 17:42:47 -05:00
markdown.rs Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPC 2020-03-05 22:04:10 +01:00
render.rs Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) 2020-03-05 16:38:24 +01:00
sources.rs Normalize syntax::source_map imports. 2020-01-02 13:57:04 +01:00
static_files.rs Revert "Update Source Code Pro and include italics" 2019-11-21 11:18:23 +01:00
toc.rs Format the world 2019-12-22 17:42:47 -05:00