diff options
| author | Koichi ITO <koic.ito@gmail.com> | 2022-05-12 00:44:25 +0900 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2022-05-14 10:41:46 -0500 |
| commit | 8a4c05865be17bac75b8d53eae5be18d749a0f5c (patch) | |
| tree | a453dc844f8b079af529c8aac71c8c6095b4ba3d | |
| parent | 17003ce66b5737a71d0a08832995dc11df497ee2 (diff) | |
| download | rust-8a4c05865be17bac75b8d53eae5be18d749a0f5c.tar.gz rust-8a4c05865be17bac75b8d53eae5be18d749a0f5c.zip | |
Use the traits added to the Rust 2021 Edition prelude
Follow up https://github.com/rust-lang/rust/pull/96861. This PR uses the traits added to the Rust 2021 Edition prelude. > The `TryInto`, `TryFrom` and `FromIterator` traits are now part of the prelude. https://doc.rust-lang.org/edition-guide/rust-2021/prelude.html
| -rw-r--r-- | src/cargo-fmt/main.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cargo-fmt/main.rs b/src/cargo-fmt/main.rs index 3542536f29b..55fd75f6de9 100644 --- a/src/cargo-fmt/main.rs +++ b/src/cargo-fmt/main.rs @@ -10,7 +10,6 @@ use std::ffi::OsStr; use std::fs; use std::hash::{Hash, Hasher}; use std::io::{self, Write}; -use std::iter::FromIterator; use std::path::{Path, PathBuf}; use std::process::Command; use std::str; |
