This commit is contained in:
Cyryl Płotnicki 2019-01-12 14:47:42 +00:00
parent 4e76d046d1
commit 1dd19a26d3

View file

@ -45,8 +45,7 @@ fn restore_older_version_of_file() -> Result<(), BakareError> {
restore_engine.restore_as_of_version(file_id, old_version)?; restore_engine.restore_as_of_version(file_id, old_version)?;
assert_target_file_contents(restore_target.path(), file_path, old_contents)?; assert_target_file_contents(restore_target.path(), file_path, old_contents)
Ok(())
} }
fn assert_target_file_contents(target: &Path, filename: &str, expected_contents: &str) -> Result<(), BakareError> { fn assert_target_file_contents(target: &Path, filename: &str, expected_contents: &str) -> Result<(), BakareError> {