Skip to content

Commit

Permalink
fix(compute): removed superflous into() in input generation of macro
Browse files Browse the repository at this point in the history
  • Loading branch information
10d9e committed Oct 25, 2024
1 parent 8942e5e commit a35e4c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion circuit_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn circuit(_attr: TokenStream, item: TokenStream) -> TokenStream {
if let Pat::Ident(pat_ident) = &**pat {
let var_name = &pat_ident.ident;
quote! {
let #var_name = context.input(&#var_name.into().into());
let #var_name = context.input(&#var_name.into());
}
} else {
quote! {}
Expand Down
8 changes: 4 additions & 4 deletions compute/src/operations/circuits/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,10 +826,10 @@ mod tests {
T: Into<GarbledUint<N>> + From<GarbledUint<N>>,
{
let mut context = CircuitBuilder::default();
let a = context.input(&a.into().into());
let b = context.input(&b.into().into());
let c = context.input(&c.into().into());
let d = context.input(&d.into().into());
let a = context.input(&a.into());
let b = context.input(&b.into());
let c = context.input(&c.into());
let d = context.input(&d.into());
let output = {
{
let res = context.mul(a, b);
Expand Down

0 comments on commit a35e4c6

Please sign in to comment.