Skip to content

Commit 148830e

Browse files
committed
Fix issues with derive macros
1 parent 7e79df4 commit 148830e

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@
22

33
All changes in this project will be noted in this file.
44

5+
### 0.8.5
6+
7+
Fixed bugs with the derive macros.
8+
59
### 0.8.4
610

11+
> **Yanked version**
12+
713
Fixed an issue with single-item struct derives when using the `Response` macro.
814

915
### 0.8.3

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ license = "Apache-2.0"
99
name = "skytable"
1010
readme = "README.md"
1111
repository = "https://github.com/skytable/client-rust"
12-
version = "0.8.4"
12+
version = "0.8.5"
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515
[dependencies]
1616
# internal deps
17-
sky-derive = "0.2.1"
17+
sky-derive = "0.2.2"
1818
# external deps
1919
tokio = { version = "1.35.1", features = ["full"] }
2020
native-tls = "0.2.11"

sky-derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sky-derive"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "Macros for the Skytable client driver"

sky-derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn derive_response(input: TokenStream) -> TokenStream {
4242
let field_names: Vec<_> = fields.named.iter().map(|f| &f.ident).collect();
4343
assert!(!field_names.is_empty(), "can't derive on empty field");
4444
let tuple_pattern = if field_names.len() == 1 {
45-
quote! { quote! { (#(#field_names),*,) } }
45+
quote! { (#(#field_names),*,) }
4646
} else {
4747
quote! { (#(#field_names),*) }
4848
};

0 commit comments

Comments
 (0)