Skip to content

Commit c011db2

Browse files
committed
fmt w/nightly
1 parent 7b23d0e commit c011db2

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

tests/snippets/builtin_open.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

vm/src/builtins.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ fn builtin_eval(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
242242
let scope = PyObject {
243243
kind: PyObjectKind::Scope { scope: scope_inner },
244244
typ: None,
245-
}.into_ref();
245+
}
246+
.into_ref();
246247

247248
// Run the source:
248249
vm.run_code_obj(code_obj.clone(), scope)
@@ -289,7 +290,8 @@ fn builtin_exec(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
289290
let scope = PyObject {
290291
kind: PyObjectKind::Scope { scope: scope_inner },
291292
typ: None,
292-
}.into_ref();
293+
}
294+
.into_ref();
293295

294296
// Run the code:
295297
vm.run_code_obj(code_obj, scope)

vm/src/pyobject.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ fn _nothing() -> PyObjectRef {
146146
PyObject {
147147
kind: PyObjectKind::None,
148148
typ: None,
149-
}.into_ref()
149+
}
150+
.into_ref()
150151
}
151152

152153
pub fn create_type(
@@ -466,7 +467,8 @@ impl PyContext {
466467
PyObject {
467468
kind: PyObjectKind::Scope { scope: scope },
468469
typ: None,
469-
}.into_ref()
470+
}
471+
.into_ref()
470472
}
471473

472474
pub fn new_module(&self, name: &str, scope: PyObjectRef) -> PyObjectRef {
@@ -959,7 +961,8 @@ impl PyObject {
959961
kind: kind,
960962
typ: Some(typ),
961963
// dict: HashMap::new(), // dict,
962-
}.into_ref()
964+
}
965+
.into_ref()
963966
}
964967

965968
/// Deprecated method, please call `vm.to_pystr`

0 commit comments

Comments
 (0)