mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
Merge branch 'str-to-PackageName' into 'master'
be explicit in collecting to a Vec of PackageName See merge request redox-os/cookbook!535
This commit is contained in:
commit
8fa5b0b272
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1833,6 +1833,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "redox-pkg"
|
||||
version = "0.2.7"
|
||||
source = "git+https://gitlab.redox-os.org/redox-os/pkgutils#436c97a0df26bfce24e33a5a86a21218aca7591f"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"ignore",
|
||||
|
||||
@ -8,7 +8,7 @@ use pkg::{
|
||||
use cookbook::WALK_DEPTH;
|
||||
|
||||
fn main() -> Result<(), PackageError> {
|
||||
let names: Vec<_> = args()
|
||||
let names: Vec<PackageName> = args()
|
||||
.skip(1)
|
||||
.map(PackageName::new)
|
||||
.collect::<Result<_, _>>()?;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user