mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fix format
This commit is contained in:
1 parent
a9e2cc90d4
commit
474577beca
1 file changed
+1
-5
+1
-5
@@ -55,11 +55,7 @@ pub fn import_module(vm: &VirtualMachine, current_path: PathBuf, module_name: &s
|
||||
Ok(module)
|
||||
}
|
||||
|
||||
fn find_source(
|
||||
vm: &VirtualMachine,
|
||||
current_path: PathBuf,
|
||||
name: &str,
|
||||
) -> Result<PathBuf, String> {
|
||||
fn find_source(vm: &VirtualMachine, current_path: PathBuf, name: &str) -> Result<PathBuf, String> {
|
||||
let sys_path = vm.get_attribute(vm.sys_module.clone(), "path").unwrap();
|
||||
let mut paths: Vec<PathBuf> = objsequence::get_elements(&sys_path)
|
||||
.iter()
|
||||
|
||||
Reference in new issue
Block a user