mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-13 22:21:05 +00:00
cargo fmt
This commit is contained in:
@@ -184,8 +184,9 @@ pub fn standard_output<T: Compiler>(
|
|||||||
if let Some(sources) = &solc_output.sources {
|
if let Some(sources) = &solc_output.sources {
|
||||||
for source_path in sources.keys() {
|
for source_path in sources.keys() {
|
||||||
if !source_code_files.contains_key(source_path) {
|
if !source_code_files.contains_key(source_path) {
|
||||||
let source = std::fs::read_to_string(source_path)
|
let source = std::fs::read_to_string(source_path).map_err(|e| {
|
||||||
.map_err(|e| anyhow::anyhow!("Can't read source file at `{}`: {}", source_path, e))?;
|
anyhow::anyhow!("Can't read source file at `{}`: {}", source_path, e)
|
||||||
|
})?;
|
||||||
let _ = source_code_files.insert(source_path.clone(), source);
|
let _ = source_code_files.insert(source_path.clone(), source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user