mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-20 06:45:36 +01:00
The great docs update
This commit is contained in:
parent
c8621d78b9
commit
b71df58f2f
106 changed files with 1286 additions and 1429 deletions
|
|
@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue