diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-05 18:02:32 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-05 18:02:32 +0200 |
commit | 2f5b837f56a07b55777e4e06955f63e1691e7c86 (patch) | |
tree | e68211a9e6e42e79b5a19c0b13dafc3ac19e6b5b /src/main.rs | |
parent | ffca9aebe887316a0ef3274f7aad726fc80a7580 (diff) | |
download | rebel-2f5b837f56a07b55777e4e06955f63e1691e7c86.tar rebel-2f5b837f56a07b55777e4e06955f63e1691e7c86.zip |
recipe: use AsRef<Path> for path argument
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index eef18ed..ce9df38 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,8 +7,6 @@ mod types; mod unshare; mod util; -use std::path::Path; - use types::*; use clap::Clap; @@ -25,7 +23,7 @@ fn main() { let runner = unsafe { runner::runc::RuncRunner::new() }.unwrap(); - let tasks = recipe::read_recipes(Path::new("examples")).unwrap(); + let tasks = recipe::read_recipes("examples").unwrap(); let mut rsv = resolve::Resolver::new(&tasks); |