Skip to content

Commit 1a07b2f

Browse files
authored
Update sources.rs
1 parent 437ec01 commit 1a07b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/evm/traces/src/debug/sources.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl SourceData {
4242
match language {
4343
MultiCompilerLanguage::Vyper(_) => {
4444
// Vyper contracts have the same name as the file name.
45-
if let Some(name) = path.file_stem().map(|s| s.to_string_lossy().to_string()) {
45+
if let Some(name) = path.file_stem().map(|s| s.to_string_lossy().into_owned()) {
4646
contract_definitions.push((name, 0..source.len()));
4747
}
4848
}

0 commit comments

Comments
 (0)