diff --git a/Cargo.lock b/Cargo.lock index d036d84..f91a005 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -690,7 +690,7 @@ dependencies = [ [[package]] name = "ctranslate2-bindings" -version = "0.2.2-rc.0" +version = "0.2.2-rc.1" dependencies = [ "async-stream", "async-trait", @@ -3086,7 +3086,7 @@ dependencies = [ [[package]] name = "tabby" -version = "0.2.2-rc.0" +version = "0.2.2-rc.1" dependencies = [ "anyhow", "async-stream", diff --git a/Cargo.toml b/Cargo.toml index 9acf01a..c0295fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ ] [workspace.package] -version = "0.2.2-rc.0" +version = "0.2.2-rc.1" edition = "2021" authors = ["Meng Zhang"] homepage = "https://github.com/TabbyML/tabby" diff --git a/crates/ctranslate2-bindings/Cargo.toml b/crates/ctranslate2-bindings/Cargo.toml index 9d16719..aa24cbe 100644 --- a/crates/ctranslate2-bindings/Cargo.toml +++ b/crates/ctranslate2-bindings/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ctranslate2-bindings" -version = "0.2.2-rc.0" +version = "0.2.2-rc.1" edition = "2021" [dependencies] diff --git a/crates/ctranslate2-bindings/src/lib.rs b/crates/ctranslate2-bindings/src/lib.rs index d1e0118..0aafd8e 100644 --- a/crates/ctranslate2-bindings/src/lib.rs +++ b/crates/ctranslate2-bindings/src/lib.rs @@ -163,9 +163,7 @@ fn inference_callback( ) -> bool { if context.cancel.is_cancelled() { true - } else if let Some(_) = context.decoding.next_token(token_id) { - false } else { - true + !context.decoding.next_token(token_id).is_some() } } diff --git a/crates/tabby/Cargo.toml b/crates/tabby/Cargo.toml index 53ca8a1..f758710 100644 --- a/crates/tabby/Cargo.toml +++ b/crates/tabby/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tabby" -version = "0.2.2-rc.0" +version = "0.2.2-rc.1" edition = "2021" [dependencies]