mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
cpython-async: try to fix rust deps lint
Summary: Use cpython crate directly in code. The py_class! macro references ::cpython which keeps cpython as a direct dependency, but the linter doesn't seem to expand the macro, so it wasn't seeing any uses of cpython. Reviewed By: jordanwebster Differential Revision: D39296144 fbshipit-source-id: 382da2eaf8d119517a274ffd7a3c4b43212ebb21
This commit is contained in:
parent
6b12105d53
commit
0c5db804f7
@ -7,7 +7,7 @@
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
use cpython_ext::cpython::*;
|
||||
use cpython::*;
|
||||
use cpython_ext::ResultPyErrExt;
|
||||
use futures::future::BoxFuture;
|
||||
use futures::future::Future;
|
||||
|
@ -21,8 +21,8 @@ mod stream;
|
||||
// Re-export.
|
||||
pub use anyhow;
|
||||
pub use async_runtime;
|
||||
pub use cpython;
|
||||
pub use cpython_ext;
|
||||
pub use cpython_ext::cpython;
|
||||
pub use future::future as PyFuture;
|
||||
pub use futures;
|
||||
pub use stream::TStream;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
use cpython_ext::cpython::*;
|
||||
use cpython::*;
|
||||
use cpython_ext::AnyhowResultExt;
|
||||
use cpython_ext::ResultPyErrExt;
|
||||
use cpython_ext::Str;
|
||||
|
Loading…
Reference in New Issue
Block a user