From 5548686cfe479ee6c6fdcb6fda1cd0ce7d0a4da5 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 2 Sep 2019 18:10:42 -0700 Subject: [PATCH 1/2] Bump edition to 2018. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index afec3b2..5fec1b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "mandelbrot" version = "0.2.0" authors = ["Jim Blandy "] +edition = "2018" [dependencies] num = "0.1.34" From 1628924fdbf1aa2a634e513d50830995f4fda10f Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 2 Sep 2019 18:12:31 -0700 Subject: [PATCH 2/2] cargo fix --edition-idioms --- src/main.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1b5f252..5b08585 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,3 @@ -extern crate num; use num::Complex; /// Try to determine if `c` is in the Mandelbrot set, using at most `limit` @@ -127,8 +126,6 @@ fn render(pixels: &mut [u8], } } -extern crate image; - use image::ColorType; use image::png::PNGEncoder; use std::fs::File;