arg formatting

This commit is contained in:
nora 2021-03-03 17:08:43 +01:00
parent f4b33c7c03
commit ac34665436
2 changed files with 71 additions and 5 deletions

View file

@ -1,10 +1,14 @@
use mandelbrot_set::Config;
use std::env;
fn main() {
let config = Config::new(1, 4, 200, 100.0);
let args = env::args();
let config = Config::from(args);
let config = Config::new(1, 3, 100, 100.0);
match mandelbrot_set::run(config) {
Ok(s) => println!("{}", s),
Err(e) => println!("Error: {}", e)
}
}
}