Skip to content

Commit b0cff9e

Browse files
committed
(ml5717) Fixed NonPositive <- neg -> NonNegative
1 parent 1805ae7 commit b0cff9e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@v2
1919

2020
- name: Run FOSSA scan and upload build data
21-
uses: fossa-contrib/fossa-action@v1
21+
uses: fossa-contrib/fossa-action@v1.2
2222
with:
2323
fossa-api-key: c244cc76fd66ed0dafcb211e621b49dd
2424
skip-test: false

necsim/core/bond/src/non_negative_f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,6 @@ impl Neg for NonNegativeF64 {
276276
type Output = NonPositiveF64;
277277

278278
fn neg(self) -> Self::Output {
279-
unsafe { NonPositiveF64::new_unchecked(self.0) }
279+
unsafe { NonPositiveF64::new_unchecked(-self.0) }
280280
}
281281
}

necsim/core/bond/src/non_positive_f64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@ impl Neg for NonPositiveF64 {
129129
type Output = NonNegativeF64;
130130

131131
fn neg(self) -> Self::Output {
132-
unsafe { NonNegativeF64::new_unchecked(self.0) }
132+
unsafe { NonNegativeF64::new_unchecked(-self.0) }
133133
}
134134
}

0 commit comments

Comments
 (0)