Pārlūkot izejas kodu

We never use the Lagrange interpolate function, but we keep it for completeness

So just mark it #[allow(dead_code)]
Ian Goldberg 3 mēneši atpakaļ
vecāks
revīzija
752e61a8c3
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/lagrange.rs

+ 2 - 0
src/lagrange.rs

@@ -24,6 +24,8 @@ pub fn lagrange(coalition: &[u32], x: u32, target_x: u32) -> Scalar {
 
 // Interpolate the given (x,y) coordinates at the target x value.
 // target_x must _not_ be in the x slice
+// We never actually use this function, but it's here for completeness
+#[allow(dead_code)]
 pub fn interpolate(x: &[u32], y: &[Scalar], target_x: u32) -> Scalar {
     assert!(x.len() == y.len());
     (0..x.len())