Fix warning with unused mut

This is caused by https://github.com/rust-lang/rust/pull/110960
This commit is contained in:
WANG Rui 2023-05-01 10:41:06 +08:00
parent 393ce5b416
commit b0a31036a6

View File

@ -149,7 +149,7 @@ pub fn build_unit_dependencies<'a, 'cfg>(
/// Compute all the dependencies for the standard library.
fn calc_deps_of_std(
mut state: &mut State<'_, '_>,
state: &mut State<'_, '_>,
std_roots: &HashMap<CompileKind, Vec<Unit>>,
) -> CargoResult<Option<UnitGraph>> {
if std_roots.is_empty() {