mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
clean up to use only public api
This commit is contained in:
1 parent
e888991da8
commit
b2ab17aaa7
1 file changed
+2
-2
@@ -3,7 +3,7 @@ pub(crate) use fcntl::make_module;
|
||||
#[pymodule]
|
||||
mod fcntl {
|
||||
use crate::{
|
||||
builtins::int,
|
||||
builtins::PyIntRef,
|
||||
function::{ArgMemoryBuffer, ArgStrOrBytesLike, OptionalArg},
|
||||
stdlib::{io, os},
|
||||
utils::Either,
|
||||
@@ -25,7 +25,7 @@ mod fcntl {
|
||||
fn fcntl(
|
||||
io::Fildes(fd): io::Fildes,
|
||||
cmd: i32,
|
||||
arg: OptionalArg<Either<ArgStrOrBytesLike, int::PyIntRef>>,
|
||||
arg: OptionalArg<Either<ArgStrOrBytesLike, PyIntRef>>,
|
||||
vm: &VirtualMachine,
|
||||
) -> PyResult {
|
||||
let int = match arg {
|
||||
|
||||
Reference in new issue
Block a user