Skip to content

Commit

Permalink
refactor(embedded): Hide unused items
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 13, 2023
1 parent 1df0ce5 commit 3bbd1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/util/toml/embedded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub fn parse_from(path: &std::path::Path) -> CargoResult<RawScript> {
parse(&body, path)
}

pub fn parse(body: &str, path: &std::path::Path) -> CargoResult<RawScript> {
fn parse(body: &str, path: &std::path::Path) -> CargoResult<RawScript> {
let comment = match extract_comment(body) {
Ok(manifest) => Some(manifest),
Err(err) => {
Expand Down Expand Up @@ -99,7 +99,7 @@ fn write(
Ok(manifest_path)
}

pub fn expand_manifest(script: &RawScript, config: &Config) -> CargoResult<String> {
fn expand_manifest(script: &RawScript, config: &Config) -> CargoResult<String> {
let manifest = expand_manifest_(script, config)
.with_context(|| format!("failed to parse manifest at {}", script.path.display()))?;
let manifest = remap_paths(
Expand Down

0 comments on commit 3bbd1e5

Please sign in to comment.