From 40e89254e01b0787089e88439fbd7b70f6c496a2 Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Wed, 10 Jun 2020 01:15:27 -0700 Subject: [PATCH] Fix no-std compilation --- r1cs-std/src/test_constraint_system.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/r1cs-std/src/test_constraint_system.rs b/r1cs-std/src/test_constraint_system.rs index 4a934f8..f20a21c 100644 --- a/r1cs-std/src/test_constraint_system.rs +++ b/r1cs-std/src/test_constraint_system.rs @@ -132,10 +132,10 @@ impl TestConstraintSystem { fn compute_path(ns: &[String], this: String) -> String { if this.chars().any(|a| a == '/') { - panic!(format!( - "'/' is not allowed in namespace names. Error in namespace name: {:?}", + panic!( + "'/' is not allowed in namespaces. Error in namespace '{}'", this - )); + ); } let mut name = String::new();