HomePhabricator
Diffusion Comm 06db746c75bc

[rust] Formatting and clippy fixes

Description

[rust] Formatting and clippy fixes

Summary:
ENG-6452 : Lint staged fails on Rust formatting

After nix update, rustfmt started formatting let else which meant that lint-staged was failing. I took this opportunity to also fix some low-hanging clippy fixes.

Test Plan:
In each cargo project:

  • Run cargo fmt
  • Run cargo clippy
    • If there are any quick and safe fixes do them
    • If I applied any clippy fixes I also run cargo check && cargo check --tests after that

Reviewers: bartek, varun, kamil

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D10651

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Jan 16 2024, 6:02 AM
Reviewer
kamil
Differential Revision
D10651: [rust] Formatting and clippy fixes
Parents
rCOMMc98e25d3f6a7: [NativeRustLibrary] support `std::promise`
Branches
Unknown
Tags
Unknown

Event Timeline

Michal Gniadek <michal.gniadek@swmansion.com> committed rCOMM06db746c75bc: [rust] Formatting and clippy fixes (authored by Michal Gniadek <michal.gniadek@swmansion.com>).Jan 16 2024, 7:02 AM