Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldcampbelljr committed Jan 10, 2025
1 parent 91f2171 commit 81cde28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gtars/src/uniwig/writing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ pub fn write_bw_files(location: &str, chrom_sizes: &str, num_threads: i32, zoom_

let mut location_path = location;

if !location_path.ends_with("/"){
if !location_path.ends_with("/") {
let mut temp_path = Path::new(location_path);
let parent_location_path = temp_path.parent().unwrap();
location_path = parent_location_path.to_str().unwrap();
}

for entry in fs::read_dir( location_path).unwrap() {
for entry in fs::read_dir(location_path).unwrap() {
let entry = entry.unwrap();
let path = entry.path();

Expand Down
3 changes: 1 addition & 2 deletions gtars/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,6 @@ mod tests {
let chromsizerefpath = chromsizerefpath.as_str();
let combinedbedpath = _path_to_dummy_bed_file;


let tempdir = tempfile::tempdir().unwrap();
let path = PathBuf::from(&tempdir.path());

Expand Down Expand Up @@ -1112,7 +1111,7 @@ mod tests {
true,
1.0,
)
.expect("Uniwig main failed!");
.expect("Uniwig main failed!");

Ok(())
}
Expand Down

0 comments on commit 81cde28

Please sign in to comment.