Rm the duplicate debug! in main.rs:214

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-21 13:52:27 +10:00
parent 74a6e137be
commit c5a2a89361
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -211,10 +211,7 @@ async fn entry() -> Result<()> {
// TODO: work out which of these to do based on `opts.name`
// TODO: support git-based fetches (whole repo name rather than just crate name)
let manifest = match opts.manifest_path.clone() {
Some(manifest_path) => {
debug!("Reading manifest: {}", manifest_path.display());
load_manifest_path(manifest_path.join("Cargo.toml"))?
}
Some(manifest_path) => load_manifest_path(manifest_path.join("Cargo.toml"))?,
None => fetch_crate_cratesio(&opts.name, &opts.version).await?,
};