xtask: reverse public API diff direction

This is currently producing inverse diffs.
pull/693/head
Tamir Duberstein 1 year ago
parent 41fc87c2e6
commit 8d7545aff8
No known key found for this signature in database

@ -99,7 +99,7 @@ fn check_package_api(
let current_api = let current_api =
read_to_string(&path).with_context(|| format!("error reading {}", path.display()))?; read_to_string(&path).with_context(|| format!("error reading {}", path.display()))?;
Ok(lines(&current_api, &public_api.to_string()) Ok(lines(&public_api.to_string(), &current_api)
.into_iter() .into_iter()
.fold(String::new(), |mut buf, diff| { .fold(String::new(), |mut buf, diff| {
match diff { match diff {

Loading…
Cancel
Save