diff options
| author | David Tolnay <dtolnay@gmail.com> | 2019-11-29 18:46:05 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-29 18:46:05 -0800 |
| commit | 34f2c2def4cb00a27c4837bc0c894ed0472c7b50 (patch) | |
| tree | 579a0152c996b81bb4d0a7e2e5494d0908fd9b8d /src/libstd/os/linux/mod.rs | |
| parent | 9081929d45f12d3f56d43b1d6db7519981580fc9 (diff) | |
| parent | 60091ee826b071a122ad4ef4ae833591e1db553b (diff) | |
| download | rust-34f2c2def4cb00a27c4837bc0c894ed0472c7b50.tar.gz rust-34f2c2def4cb00a27c4837bc0c894ed0472c7b50.zip | |
Rollup merge of #66818 - dtolnay:fmt1, r=Dylan-DPC
Format libstd/os with rustfmt
(Same strategy as #66691.)
This commit applies rustfmt with rust-lang/rust's default settings to files in src/libstd/os *that are not involved in any currently open PR* to minimize merge conflicts. The list of files involved in open PRs was determined by querying GitHub's GraphQL API [with this script](https://gist.github.com/dtolnay/aa9c34993dc051a4f344d1b10e4487e8).
With the list of files from the script in outstanding_files, the relevant commands were:
$ find src/libstd/os -name '*.rs' \
| xargs rustfmt --edition=2018 --unstable-features --skip-children
$ rg libstd/os outstanding_files | xargs git checkout --
Repeating this process several months apart should get us coverage of most of the rest of the files.
To confirm no funny business:
$ git checkout $THIS_COMMIT^
$ git show --pretty= --name-only $THIS_COMMIT \
| xargs rustfmt --edition=2018 --unstable-features --skip-children
$ git diff $THIS_COMMIT # there should be no difference
Diffstat (limited to 'src/libstd/os/linux/mod.rs')
| -rw-r--r-- | src/libstd/os/linux/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/os/linux/mod.rs b/src/libstd/os/linux/mod.rs index 3111325021a..d35307162cc 100644 --- a/src/libstd/os/linux/mod.rs +++ b/src/libstd/os/linux/mod.rs @@ -2,5 +2,5 @@ #![stable(feature = "raw_ext", since = "1.1.0")] -pub mod raw; pub mod fs; +pub mod raw; |
