8000 formatting · RustPython/RustPython@a2d08a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2d08a0

Browse files
committed
formatting
1 parent 82f71a1 commit a2d08a0

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

stdlib/src/tkinter.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ pub(crate) use self::_tkinter::make_module;
33
#[pymodule]
44
mod _tkinter {
55
use crate::builtins::PyTypeRef;
6-
use rustpython_vm::{PyResult, VirtualMachine, function::OptionalArg};
76
use rustpython_vm::function::{Either, FuncArgs};
8-
7+
use rustpython_vm::{PyResult, VirtualMachine, function::OptionalArg};
8+
99
use crate::common::lock::PyRwLock;
1010
use std::sync::Arc;
1111
use tk::cmd::*;
@@ -50,10 +50,7 @@ mod _tkinter {
5050
}
5151

5252
#[pyfunction]
53-
fn create(
54-
args: FuncArgs,
55-
_vm: &VirtualMachine,
56-
) -> PyResult<TkApp> {
53+
fn create(args: FuncArgs, _vm: &VirtualMachine) -> PyResult<TkApp> {
5754
// TODO: handle arguements
5855
// TODO: this means creating 2 tk instances is not possible.
5956
let tk = Tk::new(()).unwrap();
@@ -86,10 +83,8 @@ mod _tkinter {
8683
let tk = self.tk.read().unwrap();
8784
Ok(tk.getvar(name).unwrap())
8885
}
89-
86+
9087
#[pymethod]
91-
fn createcommand(&self, name: String, callback: PyObjectRef) {
92-
93-
}
88+
fn createcommand(&self, name: String, callback: PyObjectRef) {}
9489
}
9590
}

0 commit comments

Comments
 (0)
0