mirror of
https://github.com/Noratrieb/mandelbrot-rust.git
synced 2026-01-16 16:25:06 +01:00
optimize imports
This commit is contained in:
parent
594e357aa5
commit
6af99b1989
1 changed files with 0 additions and 2 deletions
|
|
@ -6,7 +6,6 @@ use std::ops::{Add, Mul};
|
||||||
use std::time::{Duration, SystemTime};
|
use std::time::{Duration, SystemTime};
|
||||||
|
|
||||||
use image::{ImageBuffer, Rgb, RgbImage};
|
use image::{ImageBuffer, Rgb, RgbImage};
|
||||||
use std::cmp::max;
|
|
||||||
|
|
||||||
pub fn run(config: Config) -> Result<(), Box<dyn Error>> {
|
pub fn run(config: Config) -> Result<(), Box<dyn Error>> {
|
||||||
let start_time = SystemTime::now();
|
let start_time = SystemTime::now();
|
||||||
|
|
@ -143,7 +142,6 @@ fn draw(values: &Vec<Vec<u32>>, iterations: u32) -> String {
|
||||||
}
|
}
|
||||||
|
|
||||||
static BAR_SIZE: usize = 50;
|
static BAR_SIZE: usize = 50;
|
||||||
|
|
||||||
fn progress_bar(progress: f64) -> String {
|
fn progress_bar(progress: f64) -> String {
|
||||||
let mut bar = String::from("[");
|
let mut bar = String::from("[");
|
||||||
let bar_amount = (BAR_SIZE as f64 * progress).round() as usize;
|
let bar_amount = (BAR_SIZE as f64 * progress).round() as usize;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue