Skip to content

Commit 8a60435

Browse files
committed
Fixed remaining clippy warnings and bumped version
1 parent 265f4a1 commit 8a60435

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

interpol-rs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "interpol-rs"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
edition = "2021"
55

66
[build-dependencies]

interpol-rs/src/interpol.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ use crate::types::{MpiCallType, MpiComm, MpiOp, MpiRank, MpiReq, MpiTag, Tsc, Us
2020
use crate::InterpolError;
2121
use lazy_static::lazy_static;
2222
use rayon::prelude::*;
23+
use std::fs::{self, File};
2324
use std::io::Write;
2425
use std::sync::Mutex;
25-
use std::{
26-
fs::{self, File},
27-
path::PathBuf,
28-
};
2926

3027
static INTERPOL_DIR: &str = "interpol-tmp";
3128

@@ -307,7 +304,7 @@ fn register_finalize(current_rank: MpiRank, tsc: Tsc, time: Usecs) -> Result<(),
307304
finalize_event.register(&mut guard)?;
308305

309306
// Serialize all events of the current rank
310-
serialize(&mut *guard, current_rank)?;
307+
serialize(&mut guard, current_rank)?;
311308
Ok(())
312309
}
313310

@@ -682,7 +679,7 @@ fn deserialize_all_traces() -> Result<Vec<Box<dyn Register>>, InterpolError> {
682679

683680
for entry in fs::read_dir(INTERPOL_DIR)? {
684681
let dir_entry = entry?;
685-
if dir_entry.file_name() == PathBuf::from("interpol_traces.json") {
682+
if dir_entry.file_name() == std::path::Path::new("interpol_traces.json") {
686683
fs::remove_file(dir_entry.path())?;
687684
continue;
688685
}

0 commit comments

Comments
 (0)