Skip to content

Commit

Permalink
cargo-insta: Remove MetadataCommand reexport
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Oct 7, 2023
1 parent 768d92f commit 240c641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cargo-insta/src/cargo.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::error::Error;
use std::path::{Path, PathBuf};

pub(crate) use cargo_metadata::{Metadata, MetadataCommand, Package};
pub(crate) use cargo_metadata::{Metadata, Package};

pub(crate) fn find_snapshot_roots(package: &Package) -> Vec<PathBuf> {
let mut roots = Vec::new();
Expand Down Expand Up @@ -49,7 +49,7 @@ pub(crate) fn get_metadata(
manifest_path: Option<&Path>,
all: bool,
) -> Result<Metadata, Box<dyn Error>> {
let mut cmd = MetadataCommand::new();
let mut cmd = cargo_metadata::MetadataCommand::new();
if let Some(manifest_path) = manifest_path {
cmd.manifest_path(manifest_path);
}
Expand Down

0 comments on commit 240c641

Please sign in to comment.