fn read_source_code(full_path: &PathBuf) -> Result<String> {
    let mut contract_file = File::open(full_path).with_context(|| format!("Could not open file: {:?}", full_path))?;
    let mut source_code = String::new();
    contract_file
        .read_to_string(&mut source_code)
        .with_context(|| format!("Contract contains invalid UTF-8: {:?}", full_path))?;
    Ok(source_code)
}
/// Attempts to read the source from either the "node_modules" directory or from the relative location.
Attempts to read the source from either the "node_modules" directory or from the relative location.
Attempts to read the source from either the " node_modules " directory or from the relative location .
fn read_source_code(full_path: &PathBuf) -> Result<String> {
    let mut contract_file = File::open(full_path).with_context(|| format!("Could not open file: {:?}", full_path))?;
    let mut source_code = String::new();
    contract_file
        .read_to_string(&mut source_code)
        .with_context(|| format!("Contract contains invalid UTF-8: {:?}", full_path))?;
    Ok(source_code)
}
fn read_source_code ( full_path : & PathBuf ) -> Result < String > { let mut contract_file = File :: open ( full_path ) . with_context ( | | format ! ( " " full_path ) ) ? ; let mut source_code = String :: new ( ) ; contract_file . read_to_string ( & mut source_code ) . with_context ( | | format ! ( " " full_path ) ) ? ; Ok ( source_code ) }
Attempts to read the source from either the "node_modules" directory or from the relative location.
Attempts to read the source from either the " node_modules " directory or from the relative location .
full_path
&PathBuf
full_path
&PathBuf