Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Fix GUI clippy issues #1953

Merged
merged 1 commit into from
Jun 8, 2020
Merged

Fix GUI clippy issues #1953

merged 1 commit into from
Jun 8, 2020

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Jun 8, 2020

Rust 1.44 made vec![] expand to Vec::new() (rust-lang/rust#70632).

As such clippy is now (somewhat correctly) interpreting that the macro could be used points-free.

clippy should be smart enough to not substitute the expanded macro, but
for now we can silence the errors by using a points-free constructor.

Fixes #1949.

Signed-off-by: Joe Grund [email protected]


This change is Reviewable

Rust 1.44 made `vec![]` expand to `Vec::new()` (rust-lang/rust#70632).

As such clippy is now (somewhat correctly) interpreting that the macro could be used points-free.

clippy should be smart enough to not substitute the expanded macro, but
for now we can silence the errors by using a points-free constructor.

Fixes #1949.

Signed-off-by: Joe Grund <[email protected]>
@jgrund jgrund added this to the IML EX V2 milestone Jun 8, 2020
@jgrund jgrund self-assigned this Jun 8, 2020
@jgrund jgrund merged commit 1774f36 into master Jun 8, 2020
@jgrund jgrund deleted the fix-gui-clippy-issues branch June 8, 2020 18:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent clippy failure on unrelated changes
2 participants