You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: methods.rs
    path of file: ./repos/ethers-rs/ethers-contract/ethers-contract-abigen/src/contract
    
    the code of the file until where you have to start completion: //! Methods expansion

use super::{structs::expand_struct, types, Context};
use crate::util;
use ethers_core::{
    abi::{Function, Fun
    
    fn expand_fn_outputs(outputs: &[Param]) -> Result<TokenStream> {
        match outputs.len() {
            0 => Ok(quote! { () }),
            1 => types::expand(&outputs[0].kind),
            _ => {
                let types = outputs
                    .iter()
                    .map(|param| types::expand(&param.kind))
                    .collect::<Result<Vec<_>>>()?;
                Ok(quote! { (#( #types ),*) })
            }
        }
    }