Skip to content

Commit 30145ec

Browse files
committed
cargo fmt
1 parent 830cc7e commit 30145ec

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

vm/src/obj/objobject.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use super::objstr;
22
use super::objtype;
33
use crate::pyobject::{
4-
AttributeProtocol, DictProtocol, IdProtocol, PyContext, PyFuncArgs, PyObjectPayload,
5-
PyObjectRef, PyResult, TypeProtocol, PyObject
4+
AttributeProtocol, DictProtocol, IdProtocol, PyContext, PyFuncArgs, PyObject, PyObjectPayload,
5+
PyObjectRef, PyResult, TypeProtocol,
66
};
77
use crate::vm::VirtualMachine;
88
use std::cell::RefCell;

vm/src/pyobject.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,9 @@ impl DictProtocol for PyObjectRef {
849849

850850
fn get_item(&self, k: &str) -> Option<PyObjectRef> {
851851
match self.payload {
852-
PyObjectPayload::Dict { ref elements } => objdict::content_get_key_str(&elements.borrow(), k),
852+
PyObjectPayload::Dict { ref elements } => {
853+
objdict::content_get_key_str(&elements.borrow(), k)
854+
}
853855
PyObjectPayload::Module { ref dict, .. } => dict.get_item(k),
854856
PyObjectPayload::Scope { ref scope } => scope.borrow().locals.get_item(k),
855857
ref k => panic!("TODO {:?}", k),

wasm/lib/src/convert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::vm_class::{AccessibleVM, WASMVirtualMachine};
22
use js_sys::{Array, ArrayBuffer, Object, Reflect, Uint8Array};
33
use rustpython_vm::obj::{objbytes, objtype};
4-
use rustpython_vm::pyobject::{self, PyFuncArgs, PyObjectRef, PyResult, DictProtocol};
4+
use rustpython_vm::pyobject::{self, DictProtocol, PyFuncArgs, PyObjectRef, PyResult};
55
use rustpython_vm::VirtualMachine;
66
use wasm_bindgen::{closure::Closure, prelude::*, JsCast};
77

0 commit comments

Comments
 (0)