Fix no-std compilation

This commit is contained in:
Pratyush Mishra
2020-06-10 01:15:27 -07:00
parent d5e7d8bb36
commit 40e89254e0

View File

@@ -132,10 +132,10 @@ impl<ConstraintF: Field> TestConstraintSystem<ConstraintF> {
fn compute_path(ns: &[String], this: String) -> String { fn compute_path(ns: &[String], this: String) -> String {
if this.chars().any(|a| a == '/') { if this.chars().any(|a| a == '/') {
panic!(format!( panic!(
"'/' is not allowed in namespace names. Error in namespace name: {:?}", "'/' is not allowed in namespaces. Error in namespace '{}'",
this this
)); );
} }
let mut name = String::new(); let mut name = String::new();