Skip to content

Commit

Permalink
Merge pull request #499 from AleoHQ/fix/fmt
Browse files Browse the repository at this point in the history
Hotfix cargo fmt
  • Loading branch information
howardwu authored Dec 14, 2020
2 parents 235f85e + babb8ec commit 019bbbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions ast/src/circuits/circuit_member.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,8 @@ impl<'ast> From<GrammarCircuitMember<'ast>> 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),
}
}
}
4 changes: 1 addition & 3 deletions compiler/src/function/main_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ impl<F: Field + PrimeField, G: GroupType<F>> ConstrainedProgram<F, G> {
(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
Expand Down

0 comments on commit 019bbbf

Please sign in to comment.