瀏覽代碼

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

xtask: reverse public API diff direction
Tamir Duberstein 1 年之前
父節點
當前提交
f334cbd86e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      xtask/src/public_api.rs

+ 1 - 1
xtask/src/public_api.rs

@@ -99,7 +99,7 @@ fn check_package_api(
     let current_api =
         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()
         .fold(String::new(), |mut buf, diff| {
             match diff {