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: utils.rs
    path of file: ./repos/hardhat/crates/edr_eth/src
    
    the code of the file until where you have to start completion: // Part of this code was adapted from foundry and is distributed under their
// licenss:
// - https://github.com/foundry-rs/foundry/blob/01b16238ff87dc7ca8ee3f5f13e389888c2a2ee4/LICENSE-APACHE
// -
    
pub fn u256_to_padded_hex(word: &U256) -> String {
    if word == &U256::ZERO {
        // For 0 zero, the #066x formatter doesn't add padding.
        format!("0x{}", "0".repeat(64))
    } else {
        // 66 = 64 hex chars + 0x prefix
        format!("{word:#066x}")
    }
}