Skip to content

Commit da969ef

Browse files
committed
Fix warnings on Clippy 0.1.81
1 parent 3a7d476 commit da969ef

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

rust/src/compress/label_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub fn build_mphf(path: PathBuf, num_labels: usize) -> Result<LabelNameMphf> {
6363
local_speed = true,
6464
expected_updates = Some(num_labels),
6565
);
66-
pl.start(&format!("Reading labels (pass #{})", pass_counter));
66+
pl.start(format!("Reading labels (pass #{})", pass_counter));
6767
let mut pl = BufferedProgressLogger::new(Arc::new(Mutex::new(Box::new(pl))));
6868
iter_labels(&path)
6969
.expect("Could not read labels")

rust/src/compress/mph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn build_swhids_mphf(swhids_dir: PathBuf, num_nodes: usize) -> Result<SwhidP
2727
local_speed = true,
2828
expected_updates = Some(num_nodes),
2929
);
30-
pl.start(&format!("Reading SWHIDs (pass #{})", pass_counter));
30+
pl.start(format!("Reading SWHIDs (pass #{})", pass_counter));
3131
let pl = Arc::new(Mutex::new(Box::new(pl)));
3232
par_iter_lines_from_dir(&swhids_dir, pl).map(HashableSWHID::<Vec<u8>>)
3333
};
@@ -67,7 +67,7 @@ where
6767
local_speed = true,
6868
expected_updates = *len.lock().unwrap(),
6969
);
70-
pl.start(&format!(
70+
pl.start(format!(
7171
"{} reading {} (pass {})",
7272
if parallel {
7373
"parallelly"

rust/src/compress/persons.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn build_mphf(path: PathBuf, num_persons: usize) -> Result<PersonMphf> {
5454
local_speed = true,
5555
expected_updates = Some(num_persons),
5656
);
57-
pl.start(&format!("Reading persons (pass #{})", pass_counter));
57+
pl.start(format!("Reading persons (pass #{})", pass_counter));
5858
let mut pl = BufferedProgressLogger::new(Arc::new(Mutex::new(Box::new(pl))));
5959
iter_persons(&path)
6060
.expect("Could not read persons")

0 commit comments

Comments
 (0)