Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rust): Update Cargo.lock, preserve formatting in Cargo.{toml,lock} #705

Merged
merged 15 commits into from
Jan 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: was missing g
  • Loading branch information
bcoe committed Jan 15, 2021
commit dbefc9859f9232a342751077543705fdce9f1ad6
4 changes: 2 additions & 2 deletions test/updaters/cargo-toml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('CargoToml', () => {
const oldContent = readFileSync(
resolve(fixturesPath, './Cargo.toml'),
'utf8'
).replace(/\r\n/, '\n');
).replace(/\r\n/g, '\n');
const versions = new Map();
versions.set('rust-test-repo', '14.0.0');
const cargoToml = new CargoToml({
Expand All @@ -46,7 +46,7 @@ describe('CargoToml', () => {
const oldContent = readFileSync(
resolve(fixturesPath, './Cargo.toml'),
'utf8'
).replace(/\r\n/, '\n');
).replace(/\r\n/g, '\n');
const versions = new Map();
versions.set('normal-dep', '2.0.0');
versions.set('dev-dep', '2.0.0');
Expand Down