From 2a4052975f9eedf72d2ec6422b75e06926d09923 Mon Sep 17 00:00:00 2001 From: howardwu Date: Thu, 4 Feb 2021 20:34:24 -0800 Subject: [PATCH] Fix clippy --- compiler/src/compiler.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/compiler/src/compiler.rs b/compiler/src/compiler.rs index f7205cb2ac..e0dd355ae9 100644 --- a/compiler/src/compiler.rs +++ b/compiler/src/compiler.rs @@ -237,19 +237,19 @@ impl> Compiler { Ok(hex::encode(hash)) } - // /// TODO (howardwu): Incorporate this for real program executions and intentionally-real - // /// test executions. Exclude it for test executions on dummy data. - // /// - // /// Verifies the input to the program. - // /// - // fn verify_local_data_commitment( - // &self, - // system_parameters: &SystemParameters, - // ) -> Result { - // let result = verify_local_data_commitment(system_parameters, &self.program_input)?; - // - // Ok(result) - // } + /// TODO (howardwu): Incorporate this for real program executions and intentionally-real + /// test executions. Exclude it for test executions on dummy data. + /// + /// Verifies the input to the program. + /// + pub fn verify_local_data_commitment( + &self, + system_parameters: &SystemParameters, + ) -> Result { + let result = verify_local_data_commitment(system_parameters, &self.program_input)?; + + Ok(result) + } /// /// Manually sets main function input.