Define a ModInv trait, and clean up some lingering warnings.

This commit is contained in:
2020-02-09 17:03:33 -08:00
parent 2617609bf6
commit af983adf1a
4 changed files with 22 additions and 4 deletions

View File

@@ -202,6 +202,7 @@ declareSafeSignedAddOperators bitsize _ =
testFileLit = Lit [] (Str (testFile False bitsize) Cooked Unsuffixed mempty) mempty
in [sourceFile|
use core::ops::Add;
#[cfg(test)]
use crate::CryptoNum;
#[cfg(test)]
use crate::testing::{build_test_path,run_test};