Skip to content

Commit

Permalink
fix use of const_format
Browse files Browse the repository at this point in the history
  • Loading branch information
Lur1an committed May 23, 2024
1 parent 63361f6 commit 5ae22ee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ext-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "edgedb-tokio-ext-derive"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
license = "MIT"
authors = ["lur1an <[email protected]>"]
Expand Down
6 changes: 3 additions & 3 deletions ext-derive/src/shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl<'a> ToTokens for Projection<'a> {
if let Some(t) = self.nested_projection_type {
let left = format!("{} := .{}", self.field_name, self.field_name);
quote! {
const_format::concatcp!(#left, " { ", #t::shape(), " }, ")
edgedb_tokio_ext::const_format::concatcp!(#left, " { ", #t::shape(), " }, ")
}
.to_tokens(tokens);
} else {
Expand All @@ -43,7 +43,7 @@ impl<'a> ToTokens for Projection<'a> {
if let Some(t) = self.nested_projection_type {
let left = format!("{} := .{}", self.field_name, alias);
quote! {
const_format::concatcp!(#left, " { ", #t::shape(), " }, ")
edgedb_tokio_ext::const_format::concatcp!(#left, " { ", #t::shape(), " }, ")
}
.to_tokens(tokens);
} else {
Expand Down Expand Up @@ -131,7 +131,7 @@ pub fn derive_shape(input: DeriveInput) -> proc_macro2::TokenStream {
let code = quote! {
impl #name {
const fn shape() -> &'static str {
const_format::concatcp!(#(#projections),*)
edgedb_tokio_ext::const_format::concatcp!(#(#projections),*)
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion ext/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "edgedb-tokio-ext"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
license = "MIT"
authors = ["lur1an <[email protected]>"]
Expand Down

0 comments on commit 5ae22ee

Please sign in to comment.