aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2019-10-10 13:06:55 -0500
committerDoug Goldstein <cardoe@cardoe.com>2019-10-10 13:06:55 -0500
commit45844af7454918b7b4a468c2aa5f3688db61cd77 (patch)
tree713367876a939016294cd379390b16199cd88fab /src
parentMerge branch 'kpcyrd-patch-1' (diff)
downloadcargo-ebuild-45844af7454918b7b4a468c2aa5f3688db61cd77.tar.gz
cargo-ebuild-45844af7454918b7b4a468c2aa5f3688db61cd77.tar.bz2
cargo-ebuild-45844af7454918b7b4a468c2aa5f3688db61cd77.zip
upgrade to Cargo 0.37
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 242ecc5..e933555 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -34,7 +34,7 @@ fn workspace(config: &Config) -> CargoResult<Workspace> {
/// Generates a package registry by using the Cargo.lock or creating one as necessary
fn registry<'a>(config: &'a Config, package: &Package) -> CargoResult<PackageRegistry<'a>> {
let mut registry = PackageRegistry::new(config)?;
- registry.add_sources(&[package.package_id().source_id().clone()])?;
+ registry.add_sources(vec![package.package_id().source_id()])?;
Ok(registry)
}
@@ -58,7 +58,7 @@ fn resolve<'a>(
None,
/* specs */
&[],
- true,
+ /* warn */
true
)?;
@@ -78,8 +78,12 @@ pub fn run(verbose: u32, quiet: bool) -> CliResult {
false,
/* locked */
false,
+ /* offline */
+ false,
+ /* target dir */
&None,
- &["minimal-versions".to_string()],
+ /* unstable flags */
+ &[],
)?;
// Load the workspace and current package