diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-09-22 13:22:45 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-09-23 16:11:04 +0200 |
| commit | b71df58f2fb4ed85d4c8cf806d5837ce63c73f31 (patch) | |
| tree | de4cbe4b43d399d4dcf2021c33225ccd00627434 /xtask/src/build.rs | |
| parent | c8621d78b9b1c0c67dff31404ade873a9d7b426e (diff) | |
The great docs update
Diffstat (limited to 'xtask/src/build.rs')
| -rw-r--r-- | xtask/src/build.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xtask/src/build.rs b/xtask/src/build.rs index a8c19aa..904e917 100644 --- a/xtask/src/build.rs +++ b/xtask/src/build.rs @@ -38,14 +38,14 @@ pub fn build_hexpath( .map_err(|e| anyhow::Error::new(TestRunError::PathConversionError(e))) } -pub fn compare_builds(file_1: String, file_2: String) -> anyhow::Result<()> { - let buf_1 = std::fs::read_to_string(file_1.clone())?; - let buf_2 = std::fs::read_to_string(file_2.clone())?; +pub fn compare_builds(expected: String, got: String) -> anyhow::Result<()> { + let buf_1 = std::fs::read_to_string(expected.clone())?; + let buf_2 = std::fs::read_to_string(got.clone())?; if buf_1 != buf_2 { return Err(anyhow::Error::new(TestRunError::FileCmpError { - file_1, - file_2, + expected, + got, })); } |
