make threshold pub instead of pub crate (#12814)

This commit is contained in:
Amar Singh
2022-12-05 07:14:43 -05:00
committed by GitHub
parent 5eb84f9cc6
commit f9f1ac2515
+1 -1
View File
@@ -409,7 +409,7 @@ impl Curve {
}
/// Determine the `y` value for the given `x` value.
pub(crate) fn threshold(&self, x: Perbill) -> Perbill {
pub fn threshold(&self, x: Perbill) -> Perbill {
match self {
Self::LinearDecreasing { length, floor, ceil } =>
*ceil - (x.min(*length).saturating_div(*length, Down) * (*ceil - *floor)),