From babb8ec1750e8e8fc92cded96b0b975f87282719 Mon Sep 17 00:00:00 2001 From: howardwu Date: Mon, 14 Dec 2020 13:54:46 -0400 Subject: [PATCH] Hotfix cargo fmt --- ast/src/circuits/circuit_member.rs | 8 ++------ compiler/src/function/main_function.rs | 4 +--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ast/src/circuits/circuit_member.rs b/ast/src/circuits/circuit_member.rs index c86ae4156b..c63f3f0403 100644 --- a/ast/src/circuits/circuit_member.rs +++ b/ast/src/circuits/circuit_member.rs @@ -58,12 +58,8 @@ impl<'ast> From> for CircuitMember { impl fmt::Display for CircuitMember { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - CircuitMember::CircuitVariable(ref identifier, ref type_) => { - write!(f, "{}: {}", identifier, type_) - } - CircuitMember::CircuitFunction(ref function) => { - write!(f, "{}", function) - } + CircuitMember::CircuitVariable(ref identifier, ref type_) => write!(f, "{}: {}", identifier, type_), + CircuitMember::CircuitFunction(ref function) => write!(f, "{}", function), } } } diff --git a/compiler/src/function/main_function.rs b/compiler/src/function/main_function.rs index 1d3f5d1380..a229025fa0 100644 --- a/compiler/src/function/main_function.rs +++ b/compiler/src/function/main_function.rs @@ -52,9 +52,7 @@ impl> ConstrainedProgram { (input_id, value) } FunctionInput::SelfKeyword(_) => unimplemented!("cannot access self keyword in main function"), - FunctionInput::MutSelfKeyword(_) => { - unimplemented!("cannot access mut self keyword in main function") - } + FunctionInput::MutSelfKeyword(_) => unimplemented!("cannot access mut self keyword in main function"), FunctionInput::Variable(input_model) => { let name = input_model.identifier.name.clone(); let input_option = input