Skip to content

Commit 3bbd1e5

Browse files
committed
refactor(embedded): Hide unused items
1 parent 1df0ce5 commit 3bbd1e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/toml/embedded.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn parse_from(path: &std::path::Path) -> CargoResult<RawScript> {
2121
parse(&body, path)
2222
}
2323

24-
pub fn parse(body: &str, path: &std::path::Path) -> CargoResult<RawScript> {
24+
fn parse(body: &str, path: &std::path::Path) -> CargoResult<RawScript> {
2525
let comment = match extract_comment(body) {
2626
Ok(manifest) => Some(manifest),
2727
Err(err) => {
@@ -99,7 +99,7 @@ fn write(
9999
Ok(manifest_path)
100100
}
101101

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

0 commit comments

Comments
 (0)