Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
Reformat more code to one import per line
Browse files Browse the repository at this point in the history
Summary:
`./test.py --rustfmt-only` does not reformat these (don't know why).

This is preparation to reformat whole fbsource.

```
find fbcode/buck2 -name '*.rs' | xargs arc rustfmt --config group_imports=StdExternalCrate,imports_granularity=Item
```

Reviewed By: ndmitchell

Differential Revision: D37524079

fbshipit-source-id: 1087335107e0f722d47abcced4056338d49b3d54
  • Loading branch information
stepancheg authored and facebook-github-bot committed Jun 29, 2022
1 parent 037629e commit 847e592
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linter_test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#![plugin(gazebo_lint)]
#![allow(unused)] // Unused because these are gazebo_lint test cases with no actual use

use std::{collections::HashSet, sync::Arc};
use std::collections::HashSet;
use std::sync::Arc;

use gazebo::prelude::*;

Expand Down Expand Up @@ -362,7 +363,9 @@ mod impl_dupe_warm {
}

mod should_warn {
use anyhow::{Error, Result, *};
use anyhow::Error;
use anyhow::Result;
use anyhow::*;
}

fn uses_bail() -> anyhow::Result<()> {
Expand Down

0 comments on commit 847e592

Please # to comment.