adds mdi icons, improves recipe design
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
extern crate planner;
|
||||
extern crate cookbook;
|
||||
|
||||
use std::time;
|
||||
use std::fmt::Debug;
|
||||
use std::fmt::Display;
|
||||
use std::hash::Hash;
|
||||
@@ -30,6 +31,7 @@ fn pretty_output<K: Eq + Hash + Debug>(res: &Variables<Value, K>) -> String {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let start_time = time::Instant::now();
|
||||
let conn = establish_connection();
|
||||
let possible_values = recipes::load_all(&conn);
|
||||
let domain = Domain::new(possible_values);
|
||||
@@ -39,5 +41,6 @@ fn main() {
|
||||
}
|
||||
let mut problem = problem.finish();
|
||||
let results = problem.solve_all();
|
||||
println!("{:?}", pretty_output(results.first().unwrap()));
|
||||
println!("Took {:?}", start_time.elapsed());
|
||||
println!("{}", pretty_output(results.first().unwrap()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user