mirror of
https://github.com/rust-lang/cargo
synced 2024-08-24 18:15:45 +00:00
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
This commit is contained in:
parent
9fa2bba679
commit
1626762fe4
|
@ -7,7 +7,6 @@ use handlebars::{
|
|||
RenderContext, RenderError, Renderable,
|
||||
};
|
||||
use std::collections::HashMap;
|
||||
use std::convert::TryFrom;
|
||||
use std::path::Path;
|
||||
|
||||
type FormatterRef<'a> = &'a (dyn Formatter + Send + Sync);
|
||||
|
|
|
@ -313,7 +313,6 @@
|
|||
//! <https://github.com/rust-lang/cargo/issues?q=is%3Aissue+is%3Aopen+label%3AA-rebuild-detection>
|
||||
|
||||
use std::collections::hash_map::{Entry, HashMap};
|
||||
use std::convert::TryInto;
|
||||
use std::env;
|
||||
use std::hash::{self, Hash, Hasher};
|
||||
use std::io;
|
||||
|
|
|
@ -76,7 +76,6 @@ use cargo_util::{paths, registry::make_dep_path};
|
|||
use log::{debug, info};
|
||||
use semver::Version;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::convert::TryInto;
|
||||
use std::fs;
|
||||
use std::io::ErrorKind;
|
||||
use std::path::Path;
|
||||
|
|
|
@ -8,7 +8,6 @@ use cargo_test_support::{
|
|||
basic_bin_manifest, basic_manifest, is_nightly, main_file, project, rustc_host, Project,
|
||||
};
|
||||
use filetime::FileTime;
|
||||
use std::convert::TryInto;
|
||||
use std::fs;
|
||||
use std::path::Path;
|
||||
use std::str;
|
||||
|
|
Loading…
Reference in a new issue