Skip to content

apply automatic clippy fixes to examples#1022

Merged
coriolinus merged 1 commit intomasterfrom
automatic-clippy-fix
Nov 18, 2020
Merged

apply automatic clippy fixes to examples#1022
coriolinus merged 1 commit intomasterfrom
automatic-clippy-fix

Conversation

@coriolinus
Copy link
Copy Markdown
Member

for ex in exercises/*; do
   (
     cd "$ex"
     cp example.rs src/lib.rs
     if [ -f Cargo-example.toml ]; then
       cp Cargo-example.toml Cargo.toml
     fi
     cargo +nightly clippy -Z unstable-options --fix --allow-dirty
     cp src/lib.rs example.rs
     git checkout -- src/lib.rs Cargo.toml
  )
done

Helps address #1012.

```sh
for ex in exercises/*; do
   (
     cd "$ex"
     cp example.rs src/lib.rs
     if [ -f Cargo-example.toml ]; then
       cp Cargo-example.toml Cargo.toml
     fi
     cargo +nightly clippy -Z unstable-options --fix --allow-dirty
     cp src/lib.rs example.rs
     git checkout -- src/lib.rs Cargo.toml
  )
done
```
@coriolinus coriolinus merged commit f58afa9 into master Nov 18, 2020
@coriolinus coriolinus deleted the automatic-clippy-fix branch November 18, 2020 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants