Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Delehelle committed Oct 5, 2018
1 parent da14b2f commit 59af9d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "asgart"
version = "1.3.2"
version = "1.3.3"
authors = ["Franklin Delehelle <franklin.delehelle@irit.fr>"]
license = "GPLv3"

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ length of the duplication.

# Update log

## v1.3.3

- Fix regression

## v1.3.2

- Fix arg name runtime error
Expand Down
11 changes: 6 additions & 5 deletions src/bin/asgart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,12 @@ fn search_duplications(
info!("{} Re-ordering...", style("[3/4]").blue().bold());
result = result
.into_iter()
.map(|sd| if sd.left > sd.right {
SD {left: sd.right, right: sd.left, .. sd}
} else {
sd
})
.map(|sd| if sd.left > sd.right
&& (*strand1).file_name == (*strand2).file_name {
SD {left: sd.right, right: sd.left, .. sd}
} else {
sd
})
.collect::<Vec<SD>>();
result.sort_by(|a, b| if a.left != b.left {(a.left).cmp(&b.left)
} else {
Expand Down

0 comments on commit 59af9d5

Please sign in to comment.