Add some trivial improvements to primitives runtime (#8528)

* Add some trivial improvements

* Finish primitives/runtime
This commit is contained in:
Liu-Cheng Xu
2021-04-06 02:20:36 +08:00
committed by GitHub
parent b16bc0552e
commit 00432a5ab7
10 changed files with 96 additions and 110 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ impl<'a> PiecewiseLinear<'a> {
{
let n = n.min(d.clone());
if self.points.len() == 0 {
if self.points.is_empty() {
return N::zero()
}