Set 2021 edition

This commit is contained in:
Surma
2023-02-06 16:26:40 +00:00
parent 8571b86b1d
commit f1840bb67d
3 changed files with 2 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ name = "squoosh-resize"
version = "0.1.0"
authors = ["Surma <surma@surma.link>"]
publish = false
edition = "2021"
[lib]
#crate-type = ["cdylib", "rlib"]

View File

@@ -1,8 +1,3 @@
extern crate cfg_if;
extern crate resize;
extern crate rgb;
extern crate wasm_bindgen;
mod utils;
use cfg_if::cfg_if;
@@ -13,7 +8,7 @@ use wasm_bindgen::prelude::*;
use wasm_bindgen::Clamped;
mod srgb;
use srgb::{linear_to_srgb, Clamp};
use crate::srgb::{linear_to_srgb, Clamp};
cfg_if! {
// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global