Skip to content

Commit 183d9e0

Browse files
committed
Removing unneeded debugging code
1 parent 0cd0c94 commit 183d9e0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

wasm/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async function buildWasm(network) {
3434

3535
// Strips out debug information
3636
"-Z", "location-detail=none",
37-
//"-Z", "fmt-debug=none",
37+
"-Z", "fmt-debug=none",
3838
]),
3939

4040
"--no-default-features",

wasm/src/programs/proving_key/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl ProvingKey {
7676
#[wasm_bindgen(js_name = "toString")]
7777
#[allow(clippy::inherent_to_string)]
7878
pub fn to_string(&self) -> String {
79-
format!("{:?}", self.0)
79+
self.0.to_string()
8080
}
8181
}
8282

wasm/src/programs/response.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl ExecutionResponse {
5555
let program = ProgramNative::from_str(program).map_err(|e| e.to_string())?;
5656
let verifying_key = process
5757
.get_verifying_key(program.id(), function_id)
58-
.map_err(|_| format!("Could not find verifying key for {:?}/{:?}", program.id(), function_id))?;
58+
.map_err(|_| format!("Could not find verifying key for {}/{}", program.id(), function_id))?;
5959

6060
Ok(Self {
6161
execution,
@@ -75,7 +75,7 @@ impl ExecutionResponse {
7575
) -> Result<(), String> {
7676
let proving_key = process
7777
.get_proving_key(program_id, function_id)
78-
.map_err(|_| format!("Could not find proving key for {:?}/{:?}", program_id, function_id))?;
78+
.map_err(|_| format!("Could not find proving key for {}/{}", program_id, function_id))?;
7979
self.proving_key = Some(proving_key);
8080
Ok(())
8181
}
@@ -131,7 +131,7 @@ impl ExecutionResponse {
131131
/// Returns the function identifier
132132
#[wasm_bindgen(js_name = "getFunctionId")]
133133
pub fn get_function_id(&self) -> String {
134-
format!("{:?}", self.function_id)
134+
self.function_id.to_string()
135135
}
136136

137137
/// Returns the program

0 commit comments

Comments
 (0)