From b8376a5ef807504c7dd427d2791b6e7e36a7bb00 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 5 Sep 2024 03:28:46 +0200 Subject: [PATCH] fix: moved import, exclude dist from packaging --- Cargo.toml | 1 + src/ffi/python/client.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 65aa763..a0f88c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ authors = [ license = "GPL-3.0-only" edition = "2021" version = "0.7.0-beta.1" +exclude = ["dist/*"] [lib] name = "codemp" diff --git a/src/ffi/python/client.rs b/src/ffi/python/client.rs index 4bf9c9e..e9d6350 100644 --- a/src/ffi/python/client.rs +++ b/src/ffi/python/client.rs @@ -6,7 +6,7 @@ use pyo3::prelude::*; impl Client { #[new] fn __new__(host: String, username: String, password: String) -> crate::errors::ConnectionResult { - tokio().block_on(Client::connect(host, username, password)) + super::tokio().block_on(Client::connect(host, username, password)) } // #[pyo3(name = "join_workspace")]