From 5a00d2bbe235958df14e87dfc14c20dee6bc5cd4 Mon Sep 17 00:00:00 2001 From: "Matthew D. Steele" Date: Mon, 26 Dec 2022 12:21:26 -0500 Subject: [PATCH] Update edition to 2021 --- Cargo.toml | 1 + examples/icotool.rs | 3 --- src/lib.rs | 4 ---- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 923a9e3..15943cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "ico" version = "0.2.0" +edition = "2021" authors = ["Matthew D. Steele "] description = "A library for encoding/decoding ICO image files" repository = "https://github.com/mdsteele/rust-ico" diff --git a/examples/icotool.rs b/examples/icotool.rs index 4ffb673..d22e077 100644 --- a/examples/icotool.rs +++ b/examples/icotool.rs @@ -1,6 +1,3 @@ -extern crate clap; -extern crate ico; - use clap::{App, Arg, SubCommand}; use std::fs; use std::path::PathBuf; diff --git a/src/lib.rs b/src/lib.rs index 0f1ec04..33b5666 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -56,13 +56,9 @@ #![warn(missing_docs)] -extern crate byteorder; -extern crate png; - use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; use std::collections::{BTreeSet, HashMap}; use std::io::{self, Read, Seek, SeekFrom, Write}; -use std::{u16, u8}; // ========================================================================= //