Merge pull request #693 from aya-rs/public-diff-backwards

xtask: reverse public API diff direction
reviewable/pr637/r35
Tamir Duberstein 1 year ago committed by GitHub
commit f334cbd86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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