From 342c6e969a6c3c1d97b6b7930f38ce373db22b9d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 30 Mar 2024 10:03:43 -0700 Subject: [PATCH] Update to 2021 edition, removing extern crate --- Cargo.toml | 1 + src/lib.rs | 4 ---- tests/integration_test.rs | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 987f882..2fe9c32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "ferris-says" version = "0.3.1" authors = ["Michael Gattozzi "] +edition = "2021" description = "A Rust flavored replacement for the classic cowsay" documentation = "https://docs.rs/ferris-says" repository = "https://github.com/rust-lang/ferris-says" diff --git a/src/lib.rs b/src/lib.rs index 5782ac5..61d6b0c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,3 @@ -extern crate smallvec; -extern crate textwrap; -extern crate unicode_width; - use smallvec::*; use std::io::{Result, Write}; use textwrap::fill; diff --git a/tests/integration_test.rs b/tests/integration_test.rs index 0729afe..331ce1a 100644 --- a/tests/integration_test.rs +++ b/tests/integration_test.rs @@ -1,5 +1,3 @@ -extern crate ferris_says; - use ferris_says::say; // Default width when running the binary