diff --git a/scripts/regenerate_test_rustdocs.sh b/scripts/regenerate_test_rustdocs.sh index 1ae67e7c..84ec8ba1 100755 --- a/scripts/regenerate_test_rustdocs.sh +++ b/scripts/regenerate_test_rustdocs.sh @@ -96,8 +96,7 @@ for crate_pair; do popd pushd "$PLACEHOLDER_DIR" - head -n -1 Cargo.toml >Cargo.toml.trunc - mv Cargo.toml.trunc Cargo.toml + sed -i '' '$d' Cargo.toml cargo add --path "../../../test_crates/$crate" $METADATA_CMD >"$metadata" popd