Make all PerThing types implement all trait methods on the type (#5422)

This removes the requirement to import `PerThing` to use a type that
implements the trait.
This commit is contained in:
Bastian Köcher
2020-03-27 11:21:14 +01:00
committed by GitHub
parent acab5f0570
commit bd5758932b
8 changed files with 53 additions and 17 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
//! Provides some utilities to define a piecewise linear function.
use crate::{Perbill, PerThing, traits::{AtLeast32Bit, SaturatedConversion}};
use crate::{Perbill, traits::{AtLeast32Bit, SaturatedConversion}};
use core::ops::Sub;
/// Piecewise Linear function in [0, 1] -> [0, 1].