Mark binstalk_manifests::cargo_crates_v1::CratesToml::insert private (#1818)

It uses a private type so it should not have public visibility.

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-07-13 18:49:45 +10:00 committed by GitHub
parent 0fe605f7f0
commit 74af0e7f8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,7 +68,7 @@ impl CratesToml<'_> {
/// Only use it when you know that the crate is not in the manifest.
/// Otherwise, you need to call [`CratesToml::remove`] first.
pub fn insert(&mut self, cvs: &CrateVersionSource, bins: Vec<CompactString>) {
fn insert(&mut self, cvs: &CrateVersionSource, bins: Vec<CompactString>) {
self.v1.push((cvs.to_string(), Cow::owned(bins)));
}