Mark type ManifestVisitor as pub(super)

Since mod `cretesio` is the only one need to have access to it.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-12 16:40:51 +10:00
parent 5bb5d12949
commit e68eea35fe
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
3 changed files with 3 additions and 4 deletions

View file

@ -11,7 +11,6 @@ use version::find_version;
mod vfs;
mod visitor;
pub use visitor::*;
/// Fetch a crate by name and version from github
/// TODO: implement this

View file

@ -6,7 +6,7 @@ use crates_io_api::AsyncClient;
use log::debug;
use url::Url;
use super::{find_version, ManifestVisitor};
use super::{find_version, visitor::ManifestVisitor};
use crate::{helpers::*, BinstallError, Meta, TarBasedFmt};
/// Fetch a crate Cargo.toml by name and version from crates.io

View file

@ -12,7 +12,7 @@ use crate::{
};
#[derive(Debug)]
pub struct ManifestVisitor {
pub(super) struct ManifestVisitor {
cargo_toml_content: Vec<u8>,
/// manifest_dir_path is treated as the current dir.
manifest_dir_path: PathBuf,
@ -31,7 +31,7 @@ impl ManifestVisitor {
}
/// Load binstall metadata using the extracted information stored in memory.
pub fn load_manifest(&self) -> Result<Manifest<Meta>, BinstallError> {
pub(super) fn load_manifest(&self) -> Result<Manifest<Meta>, BinstallError> {
debug!("Loading manifest directly from extracted file");
// Load and parse manifest