summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-09-05 18:02:32 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-09-05 18:02:32 +0200
commit2f5b837f56a07b55777e4e06955f63e1691e7c86 (patch)
treee68211a9e6e42e79b5a19c0b13dafc3ac19e6b5b /src/main.rs
parentffca9aebe887316a0ef3274f7aad726fc80a7580 (diff)
downloadrebel-2f5b837f56a07b55777e4e06955f63e1691e7c86.tar
rebel-2f5b837f56a07b55777e4e06955f63e1691e7c86.zip
recipe: use AsRef<Path> for path argument
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
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);