Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>
  • Loading branch information
zhiburt committed Dec 11, 2021
1 parent 0bfe8c2 commit d02a253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/python.rs
Expand Up @@ -14,9 +14,9 @@ fn main() {

#[cfg(feature = "async")]
fn main() {
let mut p = spawn_python().unwrap();

futures_lite::future::block_on(async {
let mut p = spawn_python().await.unwrap();

p.execute("import platform").await.unwrap();
p.send_line("platform.node()").await.unwrap();

Expand Down
4 changes: 2 additions & 2 deletions tests/repl.rs
Expand Up @@ -47,9 +47,9 @@ fn bash() {
#[cfg(feature = "async")]
#[test]
fn python() {
let mut p = spawn_python().unwrap();

futures_lite::future::block_on(async {
let mut p = spawn_python().await.unwrap();

p.execute("print('Hello World')").await.unwrap();
let mut msg = String::new();
p.read_line(&mut msg).await.unwrap();
Expand Down

0 comments on commit d02a253

Please sign in to comment.