Skip to content

Commit

Permalink
Merge pull request #218 from ehuss/update-rustfix
Browse files Browse the repository at this point in the history
Update rustfix to 0.8.1
  • Loading branch information
oli-obk authored Apr 15, 2024
2 parents c8e97af + e48ab6e commit b30e2cf
Show file tree
Hide file tree
Showing 9 changed files with 163 additions and 126 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* the configs could be different enough that aux builds built with a different config are incompatible (e.g. different targets).
* replaced `Revisioned::aux_builds` with a rustc-specific custom flag
* replaced `dependency_builder` and `dependency_manifest_path` with `DependencyBuilder` `Flag` that you an add to the default comments.
* updated `rustfix` from 0.6.1 to 0.8.1. This may cause additional suggestions to be applied that previously weren't.

### Removed

Expand Down
26 changes: 16 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cargo_metadata = "0.18"
crossbeam-channel = "0.5.6"
tempfile = "3.3.0"
bstr = "1.0.1"
rustfix = "0.6.1"
rustfix = "0.8.1"
cargo-platform = "0.1.2"
comma = "1.0.0"
anyhow = "1.0.6"
Expand Down
2 changes: 1 addition & 1 deletion src/custom_flags/rustfix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Flag for RustfixMode {
Some(rustfix::apply_suggestions(
&std::fs::read_to_string(config.status.path()).unwrap(),
&suggestions,
))
).map_err(|e| e.into()))
}
})
.transpose()
Expand Down
58 changes: 32 additions & 26 deletions tests/integrations/basic-bin/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 32 additions & 26 deletions tests/integrations/basic-fail-mode/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b30e2cf

Please sign in to comment.