Skip to content

Commit 5df5a0d

Browse files
committed
rearrange function signature, remove unused imports
1 parent 7eb7422 commit 5df5a0d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/cargo/core/compiler/fingerprint/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ use std::time::SystemTime;
376376
use anyhow::{bail, format_err, Context as _};
377377
use cargo_util::{paths, ProcessBuilder, Sha256};
378378
use filetime::FileTime;
379-
use itertools::Either;
380379
use serde::de;
381380
use serde::ser;
382381
use serde::{Deserialize, Serialize};
@@ -1938,10 +1937,10 @@ pub fn parse_dep_info(
19381937
ret.files.extend(
19391938
info.files
19401939
.into_iter()
1941-
.map(|(ty, path)| make_absolute_path(ty, pkg_root, path, target_root)),
1940+
.map(|(ty, path)| make_absolute_path(ty, pkg_root, target_root, path)),
19421941
);
19431942
for (ty, path, file_len, checksum) in info.checksum {
1944-
let path = make_absolute_path(ty, pkg_root, path, target_root);
1943+
let path = make_absolute_path(ty, pkg_root, target_root, path);
19451944
ret.checksum
19461945
.insert(path, (file_len, Checksum::from_str(&checksum)?));
19471946
}
@@ -1951,8 +1950,8 @@ pub fn parse_dep_info(
19511950
fn make_absolute_path(
19521951
ty: DepInfoPathType,
19531952
pkg_root: &Path,
1954-
path: PathBuf,
19551953
target_root: &Path,
1954+
path: PathBuf,
19561955
) -> PathBuf {
19571956
match ty {
19581957
DepInfoPathType::PackageRootRelative => pkg_root.join(path),

src/cargo/util/context/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ use serde::Deserialize;
9191
use serde_untagged::UntaggedEnumVisitor;
9292
use time::OffsetDateTime;
9393
use toml_edit::Item;
94-
use tracing::warn;
9594
use url::Url;
9695

9796
mod de;

0 commit comments

Comments
 (0)