Skip to content

Commit a099361

Browse files
committed
formatting changes
1 parent 0647653 commit a099361

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ fn main() {
4343
.takes_value(true)
4444
.help("run library module as script"),
4545
)
46-
.arg(Arg::from_usage("[pyargs] 'args for python'")
47-
.multiple(true)
48-
)
46+
.arg(Arg::from_usage("[pyargs] 'args for python'").multiple(true))
4947
.get_matches();
5048

5149
// Construct vm:

vm/src/sysmodule.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use std::env;
2-
use super::pyobject::{DictProtocol, PyContext, PyObjectRef, PyFuncArgs, PyResult};
1+
use super::pyobject::{DictProtocol, PyContext, PyFuncArgs, PyObjectRef, PyResult};
32
use super::vm::VirtualMachine;
3+
use std::env;
44

55
/*
66
* The magic sys module.
@@ -12,7 +12,6 @@ fn argv(ctx: &PyContext) -> PyObjectRef {
1212
ctx.new_list(argv)
1313
}
1414

15-
1615
pub fn mk_module(ctx: &PyContext) -> PyObjectRef {
1716
let path_list = match env::var_os("PYTHONPATH") {
1817
Some(paths) => env::split_paths(&paths)

0 commit comments

Comments
 (0)