From a8273626a9cc5b8ca343e3dada659ef583edd8b8 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 {