Skip to content

Commit

Permalink
Prepare for rustfmt 2.0
Browse files Browse the repository at this point in the history
Summary:
Generated by formatting with rustfmt 2.0.0-rc.2 and then a second time with fbsource's current rustfmt (1.4.14).

This results in formatting for which rustfmt 1.4 is idempotent but is closer to the style of rustfmt 2.0, reducing the amount of code that will need to change atomically in that upgrade.

 ---

*Why now?* **:** The 1.x branch is no longer being developed and fixes like rust-lang/rustfmt#4159 (which we need in fbcode) only land to the 2.0 branch.

 ---

Reviewed By: zertosh

Differential Revision: D23568784

fbshipit-source-id: 7401066bfc99390686eb3fd9dc6f9888ccef9487
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Sep 8, 2020
1 parent 142eb8f commit aeebec5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ mod test {

let manifest_content = std::fs::read_to_string(&path)?;

assert_eq!(manifest_content, "{\n \"files\": {\n \"core\": \"f4bb1975bf1f81f76ce824f7536c1e101a8060a632a52289d530a6f600d52c92\"\n }\n}");
assert_eq!(
manifest_content,
"{\n \"files\": {\n \"core\": \"f4bb1975bf1f81f76ce824f7536c1e101a8060a632a52289d530a6f600d52c92\"\n }\n}"
);

Ok(())
}
Expand Down

0 comments on commit aeebec5

Please sign in to comment.