From 8d7545aff8a0eb5a44fcf2afb2a117a0d67cf9d1 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 27 Jul 2023 09:01:30 -0400 Subject: [PATCH] xtask: reverse public API diff direction This is currently producing inverse diffs. --- xtask/src/public_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtask/src/public_api.rs b/xtask/src/public_api.rs index 0375016e..56db350b 100644 --- a/xtask/src/public_api.rs +++ b/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(¤t_api, &public_api.to_string()) + Ok(lines(&public_api.to_string(), ¤t_api) .into_iter() .fold(String::new(), |mut buf, diff| { match diff {