git.delta.rocks / unique-network / refs/commits / f5f392cb05f1

difftreelog

path: Fix tuple generation.

Trubnikov Sergey2022-08-05parent: #3bb7d24.patch.diff
in: master

1 file changed

modifiedcrates/evm-coder/src/solidity.rsdiffbeforeafterboth
180 fn is_simple() -> bool {180 fn is_simple() -> bool {
181 false181 false
182 }182 }
183 #[allow(unused_assignments)]
183 fn solidity_default(writer: &mut impl fmt::Write, tc: &TypeCollector) -> fmt::Result {184 fn solidity_default(writer: &mut impl fmt::Write, tc: &TypeCollector) -> fmt::Result {
184 write!(writer, "{}(", tc.collect_tuple::<Self>())?;185 write!(writer, "{}(", tc.collect_tuple::<Self>())?;
186 let mut first = true;
185 $(187 $(
188 if !first {
189 write!(writer, ",")?;
190 } else {
191 first = false;
192 }
186 <$ident>::solidity_default(writer, tc)?;193 <$ident>::solidity_default(writer, tc)?;
187 )*194 )*
188 write!(writer, ")")195 write!(writer, ")")