Skip to content

Commit

Permalink
Removing unneeded debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Jan 30, 2025
1 parent 0cd0c94 commit 183d9e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion wasm/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function buildWasm(network) {

// Strips out debug information
"-Z", "location-detail=none",
//"-Z", "fmt-debug=none",
"-Z", "fmt-debug=none",
]),

"--no-default-features",
Expand Down
2 changes: 1 addition & 1 deletion wasm/src/programs/proving_key/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl ProvingKey {
#[wasm_bindgen(js_name = "toString")]
#[allow(clippy::inherent_to_string)]
pub fn to_string(&self) -> String {
format!("{:?}", self.0)
self.0.to_string()
}
}

Expand Down
6 changes: 3 additions & 3 deletions wasm/src/programs/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl ExecutionResponse {
let program = ProgramNative::from_str(program).map_err(|e| e.to_string())?;
let verifying_key = process
.get_verifying_key(program.id(), function_id)
.map_err(|_| format!("Could not find verifying key for {:?}/{:?}", program.id(), function_id))?;
.map_err(|_| format!("Could not find verifying key for {}/{}", program.id(), function_id))?;

Ok(Self {
execution,
Expand All @@ -75,7 +75,7 @@ impl ExecutionResponse {
) -> Result<(), String> {
let proving_key = process
.get_proving_key(program_id, function_id)
.map_err(|_| format!("Could not find proving key for {:?}/{:?}", program_id, function_id))?;
.map_err(|_| format!("Could not find proving key for {}/{}", program_id, function_id))?;
self.proving_key = Some(proving_key);
Ok(())
}
Expand Down Expand Up @@ -131,7 +131,7 @@ impl ExecutionResponse {
/// Returns the function identifier
#[wasm_bindgen(js_name = "getFunctionId")]
pub fn get_function_id(&self) -> String {
format!("{:?}", self.function_id)
self.function_id.to_string()
}

/// Returns the program
Expand Down

0 comments on commit 183d9e0

Please sign in to comment.