Tidying up
This commit is contained in:
parent
2127a1dec5
commit
e2524a69d1
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ fn instantiate<'a>(targets: IndexMap<&'a str, (InstanceType, Vec<&'a str>)>) ->
|
|||
}
|
||||
|
||||
fn instantiate_container(ins: &str, instype: InstanceType, deps: Vec<&str>) -> Result<(), ErrorKind> {
|
||||
let deps = deps.iter().map(|a| { let a = *a; a.into() }).collect();
|
||||
let deps = deps.iter().map(|a| (*a).into()).collect();
|
||||
let mut logger = Logger::new("pacwrap").init().unwrap();
|
||||
let instance = match config::provide_new_handle(ins) {
|
||||
Ok(mut handle) => {
|
||||
|
@ -164,8 +164,8 @@ fn instantiate_container(ins: &str, instype: InstanceType, deps: Vec<&str>) -> R
|
|||
|
||||
config::save_handle(&instance).ok();
|
||||
logger.log(format!("Configuration file created for {ins}")).unwrap();
|
||||
drop(instance);
|
||||
println!("{} Instantiation of {ins} complete.", *ARROW_GREEN);
|
||||
drop(instance);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue