Skip to content

Commit a708ce2

Browse files
committed
Remove needless format!
1 parent d24dd17 commit a708ce2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/import.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn import_uncached_module(vm: &VirtualMachine, current_path: PathBuf, module: &s
2424
let file_path = find_source(vm, current_path, module)
2525
.map_err(|e| vm.new_exception(notfound_error.clone(), e))?;
2626
let source = util::read_file(file_path.as_path())
27-
.map_err(|e| vm.new_exception(import_error.clone(), format!("{}", e)))?;
27+
.map_err(|e| vm.new_exception(import_error.clone(), e.to_string()))?;
2828
let code_obj = compile::compile(
2929
vm,
3030
&source,

0 commit comments

Comments
 (0)