difftreelog
path: Fix tuple generation.
in: master
1 file changed
crates/evm-coder/src/solidity.rsdiffbeforeafterboth180 fn is_simple() -> bool {180 fn is_simple() -> bool {181 false181 false182 }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, ")")