Skip to content

fix more clippy findings - #69802

Merged
bors merged 12 commits into
rust-lang:masterfrom
matthiaskrgr:cl1ppy
Mar 13, 2020
Merged

fix more clippy findings#69802
bors merged 12 commits into
rust-lang:masterfrom
matthiaskrgr:cl1ppy

Conversation

@matthiaskrgr

Copy link
Copy Markdown
Member
  • 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)

Comment threadsrc/libstd/sys_common/wtf8.rs Outdated
@JohnTitorJohnTitor added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 7, 2020
Comment threadsrc/librustdoc/html/render.rs Outdated
@matthiaskrgr

Copy link
Copy Markdown
MemberAuthor

r? @GuillaumeGomez

@Dylan-DPC-zz

Copy link
Copy Markdown

@bors r+

@bors

bors commented Mar 11, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 8351138 has been approved by Dylan-DPC

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 11, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 12, 2020
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)
@CentrilCentril mentioned this pull request Mar 12, 2020
bors added a commit that referenced this pull request Mar 13, 2020
Rollup of 8 pull requests
Successful merges:
- #68746 (Make macro metavars respect (non-)hygiene)
- #69189 (Erase regions in writeback)
- #69402 (Extend search)
- #69403 (Implement `Copy` for `IoSlice`)
- #69460 (Move some `build-pass` tests to `check-pass`)
- #69802 (fix more clippy findings)
- #69809 (remove lifetimes that can be elided (clippy::needless_lifetimes))
- #69949 (triagebot.toml: add ping aliases)
Failed merges:
- #69589 (ast: `Mac`/`Macro` -> `MacCall`)
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Mar 13, 2020
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)
@CentrilCentril mentioned this pull request Mar 13, 2020
@JohnTitorJohnTitor mentioned this pull request Mar 13, 2020
bors added a commit that referenced this pull request Mar 13, 2020
Rollup of 12 pull requests
Successful merges:
- #69403 (Implement `Copy` for `IoSlice`)
- #69460 (Move some `build-pass` tests to `check-pass`)
- #69723 (Added doc on keyword Pub.)
- #69802 (fix more clippy findings)
- #69809 (remove lifetimes that can be elided (clippy::needless_lifetimes))
- #69947 (Clean up E0423 explanation)
- #69949 (triagebot.toml: add ping aliases)
- #69954 (rename panic_if_ intrinsics to assert_)
- #69960 (miri engine: fix treatment of abort intrinsic)
- #69966 (Add more regression tests)
- #69973 (Update stable-since version for const_int_conversion)
- #69974 (Clean up E0434 explanation)
Failed merges:
r? @ghost
@bors
bors merged commit 8e17c83 into rust-lang:masterMar 13, 2020
@matthiaskrgr
matthiaskrgr deleted the cl1ppy branch January 25, 2025 09:12
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@matthiaskrgr@Dylan-DPC-zz@bors@ollie27@tesuji@GuillaumeGomez@QuietMisdreavus@JohnTitor