From 5036518108c04a9c4a731898a2841f7080c9f081 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Mon, 3 Jan 2022 14:41:53 +0300 Subject: [PATCH] Change crate edition to "2018" --- Cargo.toml | 2 +- qoi-bench/Cargo.toml | 2 +- src/encode.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 30e5802..f03e434 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "qoi-fast" version = "0.2.0" description = "VERY fast encoder/decoder for QOI (Quite Okay Image) format" authors = ["Ivan Smirnov "] -edition = "2021" +edition = "2018" readme = "README.md" license = "MIT" repository = "https://github.com/aldanor/qoi-fast" diff --git a/qoi-bench/Cargo.toml b/qoi-bench/Cargo.toml index d61a5e9..a8306bb 100644 --- a/qoi-bench/Cargo.toml +++ b/qoi-bench/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "qoi-bench" version = "0.1.0" -edition = "2021" +edition = "2018" [dependencies] # internal diff --git a/src/encode.rs b/src/encode.rs index 935c6e3..f3c4507 100644 --- a/src/encode.rs +++ b/src/encode.rs @@ -1,3 +1,4 @@ +use std::convert::TryFrom; use std::io::Write; use crate::consts::{QOI_HEADER_SIZE, QOI_OP_INDEX, QOI_OP_RUN, QOI_PADDING, QOI_PADDING_SIZE};