Browse Source

cargo fmt

Ian Goldberg 1 month ago
parent
commit
9e3e98ed28
3 changed files with 10 additions and 5 deletions
  1. 2 1
      sigma-compiler-core/src/syntax.rs
  2. 6 2
      src/dumper.rs
  3. 2 2
      src/lib.rs

+ 2 - 1
sigma-compiler-core/src/syntax.rs

@@ -197,7 +197,8 @@ pub fn taggedvardict_to_vardict(vd: &TaggedVarDict) -> VarDict {
 /// Collect the list of [`Point`](TaggedIdent::Point)s tagged `cind`
 /// from the given [`TaggedVarDict`]
 pub fn collect_cind_points(vars: &TaggedVarDict) -> Vec<Ident> {
-    let mut cind_points: Vec<Ident> = vars.values()
+    let mut cind_points: Vec<Ident> = vars
+        .values()
         .filter_map(|ti| {
             if let TaggedIdent::Point(TaggedPoint {
                 is_cind: true,

+ 6 - 2
src/dumper.rs

@@ -28,7 +28,11 @@ pub fn dump_buffer() -> String {
 pub fn dump(s: &str) {
     let mut b = DUMP_BUFFER.lock().unwrap();
     match *b {
-        None => { print!("{}", s); }
-        Some(ref mut buf) => { buf.push_str(s); }
+        None => {
+            print!("{}", s);
+        }
+        Some(ref mut buf) => {
+            buf.push_str(s);
+        }
     }
 }

+ 2 - 2
src/lib.rs

@@ -6,7 +6,7 @@ pub use sigma_compiler_derive::{sigma_compiler, sigma_compiler_prover, sigma_com
 pub use sigma_proofs;
 pub use subtle;
 
-pub mod rangeutils;
-pub mod vecutils;
 #[cfg(feature = "dump")]
 pub mod dumper;
+pub mod rangeutils;
+pub mod vecutils;