diff --git a/src/cargo/ops/lockfile.rs b/src/cargo/ops/lockfile.rs
index b27a7e742ff..26456e5609d 100644
--- a/src/cargo/ops/lockfile.rs
+++ b/src/cargo/ops/lockfile.rs
@@ -2,7 +2,6 @@ use std::io::prelude::*;
use crate::core::{resolver, Resolve, ResolveVersion, Workspace};
use crate::util::errors::CargoResult;
-use crate::util::toml as cargo_toml;
use crate::util::Filesystem;
use anyhow::Context as _;
@@ -20,8 +19,7 @@ pub fn load_pkg_lockfile(ws: &Workspace<'_>) -> CargoResult