Migrate to edition 2021

This commit is contained in:
Lukas Wirth 2021-10-21 17:49:28 +02:00
parent 6aeeb4ef33
commit 1294bfce86
56 changed files with 48 additions and 71 deletions

View file

@ -1,6 +1,5 @@
//! See [`CargoWorkspace`].
use std::convert::{TryFrom, TryInto};
use std::iter;
use std::path::PathBuf;
use std::{ops, process::Command};

View file

@ -28,7 +28,6 @@ mod build_scripts;
mod tests;
use std::{
convert::{TryFrom, TryInto},
fs::{self, read_dir, ReadDir},
io,
process::Command,

View file

@ -1,5 +1,5 @@
//! See [`ManifestPath`].
use std::{convert::TryFrom, ops, path::Path};
use std::{ops, path::Path};
use paths::{AbsPath, AbsPathBuf};

View file

@ -4,7 +4,7 @@
//! but we can't process `.rlib` and need source code instead. The source code
//! is typically installed with `rustup component add rust-src` command.
use std::{convert::TryFrom, env, fs, iter, ops, path::PathBuf, process::Command};
use std::{env, fs, iter, ops, path::PathBuf, process::Command};
use anyhow::{format_err, Result};
use la_arena::{Arena, Idx};

View file

@ -2,7 +2,7 @@
//! metadata` or `rust-project.json`) into representation stored in the salsa
//! database -- `CrateGraph`.
use std::{collections::VecDeque, convert::TryFrom, fmt, fs, process::Command};
use std::{collections::VecDeque, fmt, fs, process::Command};
use anyhow::{format_err, Context, Result};
use base_db::{