Skip to content

Commit 45b1a6d

Browse files
generatedunixname89002005320881meta-codesync[bot]
authored andcommitted
[QuickReview][Codemod][Lint:fbsource:RUSTFIX:clippy::needless_borrows_for_generic_args] Fix clippy::needless_borrows_for_generic_args issues in fbcode/antlir/antlir2/antlir2_facts/src
Differential Revision: D88826325 fbshipit-source-id: 14c05ca54c52df8923dbc28324e4cde8ed428dae
1 parent 1669c47 commit 45b1a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

antlir/antlir2/antlir2_facts/src/update_db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn populate_files(tx: &mut Transaction, root: &Path) -> anyhow::Result<()> {
8686
let fact = if entry.file_type().is_dir() {
8787
DirEntry::Directory(common.into())
8888
} else if entry.file_type().is_symlink() {
89-
let raw_target = std::fs::read_link(&full_path)
89+
let raw_target = std::fs::read_link(full_path)
9090
.with_context(|| format!("while reading raw link {}", full_path.display()))?;
9191
DirEntry::Symlink(Symlink::new(common, raw_target))
9292
} else if entry.file_type().is_file() {

0 commit comments

Comments
 (0)