diff options
author | Doug Goldstein <cardoe@cardoe.com> | 2019-10-10 13:06:55 -0500 |
---|---|---|
committer | Doug Goldstein <cardoe@cardoe.com> | 2019-10-10 13:06:55 -0500 |
commit | 45844af7454918b7b4a468c2aa5f3688db61cd77 (patch) | |
tree | 713367876a939016294cd379390b16199cd88fab /src | |
parent | Merge branch 'kpcyrd-patch-1' (diff) | |
download | cargo-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.rs | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |