From c8d9b4d9ceeaf201f2b9c7efeba619b0a893c842 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 9 Oct 2023 16:35:40 -0700 Subject: [PATCH] Release 0.2.2-rc.1 ctranslate2-bindings@0.2.2-rc.1 tabby@0.2.2-rc.1 Generated by cargo-workspaces --- Cargo.lock | 4 ++-- Cargo.toml | 2 +- crates/ctranslate2-bindings/Cargo.toml | 2 +- crates/ctranslate2-bindings/src/lib.rs | 4 +--- crates/tabby/Cargo.toml | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d036d84189a..f91a0054d46 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 9acf01af6f7..c0295fe410d 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 9d167195033..aa24cbe7a65 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 d1e01186d00..0aafd8e87d8 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 53ca8a16479..f758710e82c 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]