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 {
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();