mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 22:47:56 +00:00
Add some trivial improvements to primitives runtime (#8528)
* Add some trivial improvements * Finish primitives/runtime
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user