diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-08-10 14:41:03 -0700 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-08-11 18:39:11 -0700 |
commit | 13a210b7004ce431a487ade076f594c4a5f157fe (patch) | |
tree | f8407c021a7a1d5f1daec69514e9a18c05dea7b2 /src/align.rs | |
parent | 81c96c2bb0ba33e5a543ccd5679d94f1a4ef811f (diff) |
Clean up
Diffstat (limited to 'src/align.rs')
-rw-r--r-- | src/align.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/align.rs b/src/align.rs index 6e9b5af4..2a30afb4 100644 --- a/src/align.rs +++ b/src/align.rs @@ -95,8 +95,11 @@ impl<'a> Alignment<'a> { }, ]; let index = self.index(i, j); - self.table[index] = - (*candidates.iter().min_by_key(|cell| cell.cost).unwrap()).clone(); + self.table[index] = candidates + .iter() + .min_by_key(|cell| cell.cost) + .unwrap() + .clone(); } } } |