diff --git a/license-provider/src/license_issuer.rs b/license-provider/src/license_issuer.rs index d325c99..8f4e420 100644 --- a/license-provider/src/license_issuer.rs +++ b/license-provider/src/license_issuer.rs @@ -50,7 +50,7 @@ impl LicenseIssuer { ssk_lp: &SecretSpendKey, attr_data: &JubJubScalar, ) -> Result<(BlsScalar, Vec), Error> { - let license = License::new(&attr_data, ssk_lp, request, rng); + let license = License::new(attr_data, ssk_lp, request, rng); let license_blob = rkyv::to_bytes::<_, MAX_LICENSE_SIZE>(&license) .expect("License should serialize correctly") .to_vec(); diff --git a/moat-cli-lp/src/main.rs b/moat-cli-lp/src/main.rs index 39b1a0d..9146a07 100644 --- a/moat-cli-lp/src/main.rs +++ b/moat-cli-lp/src/main.rs @@ -58,7 +58,7 @@ async fn main() -> Result<(), CliError> { WalletAccessor::create(wallet_path.clone(), psw.clone()).unwrap(); let wallet = Wallet::from_file(wallet_accessor).unwrap(); - let (_psk, ssk) = wallet.spending_keys(&wallet.default_address()).unwrap(); + let (_psk, ssk) = wallet.spending_keys(wallet.default_address()).unwrap(); let mut interactor = Interactor { wallet_path, diff --git a/moat-cli-user/src/command.rs b/moat-cli-user/src/command.rs index cb5517d..21927af 100644 --- a/moat-cli-user/src/command.rs +++ b/moat-cli-user/src/command.rs @@ -324,12 +324,12 @@ impl Command { let verifier_path = &wallet_dir_path.join("moat_verifier.dat"); if prover_path.exists() && verifier_path.exists() { - let mut file = File::open(&prover_path)?; + let mut file = File::open(prover_path)?; let mut prover_bytes = vec![]; file.read_to_end(&mut prover_bytes)?; let prover = Prover::try_from_bytes(prover_bytes).unwrap(); - file = File::open(&verifier_path)?; + file = File::open(verifier_path)?; let mut verifier_bytes = vec![]; file.read_to_end(&mut verifier_bytes)?; let verifier = @@ -349,10 +349,10 @@ impl Command { Compiler::compile::(&pp, LABEL) .expect("Compiling circuit should succeed"); - let mut file = File::create(&prover_path)?; + let mut file = File::create(prover_path)?; file.write_all(prover.to_bytes().as_slice())?; - file = File::create(&verifier_path)?; + file = File::create(verifier_path)?; file.write_all(verifier.to_bytes().as_slice())?; let sh = SetupHolder { prover, verifier }; diff --git a/moat-cli-user/src/main.rs b/moat-cli-user/src/main.rs index 0078f60..512b607 100644 --- a/moat-cli-user/src/main.rs +++ b/moat-cli-user/src/main.rs @@ -53,7 +53,7 @@ async fn main() -> Result<(), CliError> { WalletAccessor::create(wallet_path.clone(), psw.clone()).unwrap(); let wallet = Wallet::from_file(wallet_accessor).unwrap(); - let (_psk, ssk) = wallet.spending_keys(&wallet.default_address()).unwrap(); + let (_psk, ssk) = wallet.spending_keys(wallet.default_address()).unwrap(); let mut interactor = Interactor { wallet_path,