From 3bbd1e5da7df721510c94164a6158410bf00fb1b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 13 Jun 2023 08:57:50 -0500 Subject: [PATCH] refactor(embedded): Hide unused items --- src/cargo/util/toml/embedded.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/util/toml/embedded.rs b/src/cargo/util/toml/embedded.rs index ac92a89585d..9f0577bbb55 100644 --- a/src/cargo/util/toml/embedded.rs +++ b/src/cargo/util/toml/embedded.rs @@ -21,7 +21,7 @@ pub fn parse_from(path: &std::path::Path) -> CargoResult { parse(&body, path) } -pub fn parse(body: &str, path: &std::path::Path) -> CargoResult { +fn parse(body: &str, path: &std::path::Path) -> CargoResult { let comment = match extract_comment(body) { Ok(manifest) => Some(manifest), Err(err) => { @@ -99,7 +99,7 @@ fn write( Ok(manifest_path) } -pub fn expand_manifest(script: &RawScript, config: &Config) -> CargoResult { +fn expand_manifest(script: &RawScript, config: &Config) -> CargoResult { let manifest = expand_manifest_(script, config) .with_context(|| format!("failed to parse manifest at {}", script.path.display()))?; let manifest = remap_paths(