arnaucube
arnaucube/NovaPublic Self-hosted repository
cargo fmt
Srinath Setty srinath@microsoft.com
Thu, 14 Oct 2021 16:53:55 -0700
commit

8027bcf05623aeed004c5a591249c2c9dfddbb7c

parent

ff885c4d5dd51b25a793b6727d2f5172971fbf66

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M src/bellperson/shape_cs.rs → src/bellperson/shape_cs.rs

@@ -213,7 +213,11 @@ }

/// TODO: document fn set_named_obj(&mut self, path: String, to: NamedObject) { - assert!(!self.named_objects.contains_key(&path), "tried to create object at existing path: {}", path); + assert!( + !self.named_objects.contains_key(&path), + "tried to create object at existing path: {}", + path + ); self.named_objects.insert(path, to); }

@@ -306,7 +310,10 @@ }

} fn compute_path(ns: &[String], this: &str) -> String { - assert!(!this.chars().any(|a| a == '/'), "'/' is not allowed in names"); + assert!( + !this.chars().any(|a| a == '/'), + "'/' is not allowed in names" + ); let mut name = String::new();