Skip to content

Commit f536bda

Browse files
committed
alpm: drop redundant references in format arguments
Clippy 1.97+ flags these as useless_borrows_in_formatting. Assisted-by: Pi (Claude Opus 4.6)
1 parent 8df3cb4 commit f536bda

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/alpm.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ impl AlpmComponentsRepo {
101101
let basename = local_db_entry.desc.base().with_context(|| {
102102
format!(
103103
"parsing base from desc file of alpm db entry {}",
104-
&local_db_entry.source
104+
local_db_entry.source
105105
)
106106
})?;
107107
let builddate = local_db_entry.desc.builddate().with_context(|| {
108108
format!(
109109
"parsing builddate from desc file of alpm db entry {}",
110-
&local_db_entry.source
110+
local_db_entry.source
111111
)
112112
})?;
113113
let stability = calculate_stability(&[], builddate, now);
@@ -142,7 +142,7 @@ impl AlpmComponentsRepo {
142142
.with_context(|| {
143143
format!(
144144
"adding package {} to map from paths to alpm components",
145-
&local_db_entry.source
145+
local_db_entry.source
146146
)
147147
})?;
148148
package_count += 1;
@@ -403,7 +403,7 @@ impl LocalAlpmDbIterator {
403403
let local_db_entry_file_type = local_db_entry.file_type().with_context(|| {
404404
format!(
405405
"determining file type of database entry {}",
406-
&local_db_entry_name
406+
local_db_entry_name
407407
)
408408
})?;
409409

@@ -416,7 +416,7 @@ impl LocalAlpmDbIterator {
416416
.with_context(|| {
417417
format!(
418418
"getting metadata for database entry {}",
419-
&local_db_entry_name
419+
local_db_entry_name
420420
)
421421
})?
422422
.is_dir()
@@ -430,7 +430,7 @@ impl LocalAlpmDbIterator {
430430
let package_dir = local_db_entry.open_dir().with_context(|| {
431431
format!(
432432
"opening dir for alpm database entry {}",
433-
&local_db_entry_name
433+
local_db_entry_name
434434
)
435435
})?;
436436
return Self::package_info_from_dir(&package_dir, local_db_entry_name)

0 commit comments

Comments
 (0)