Skip to content

Commit

Permalink
Merge pull request #59 from rodrimati1992/fix-style-warnings
Browse files Browse the repository at this point in the history
Fix Rust-Analyzer-only warning
  • Loading branch information
rodrimati1992 authored Sep 6, 2024
2 parents cc41c59 + f73dd80 commit d9760d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions const_format/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "const_format"
version = "0.2.32"
version = "0.2.33"
authors = ["rodrimati1992 <[email protected]>"]
rust-version = "1.57.0"
edition = "2021"
Expand Down Expand Up @@ -53,7 +53,7 @@ __only_new_tests = ["__test"]
__docsrs = []

[dependencies.const_format_proc_macros]
version = "=0.2.32"
version = "=0.2.33"
path = "../const_format_proc_macros"

[dependencies.konst]
Expand Down
2 changes: 1 addition & 1 deletion const_format_proc_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "const_format_proc_macros"
version = "0.2.32"
version = "0.2.33"
authors = ["rodrimati1992 <[email protected]>"]
rust-version = "1.57.0"
edition = "2021"
Expand Down
6 changes: 3 additions & 3 deletions const_format_proc_macros/src/format_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ pub(crate) fn formatcp_impl(fmt_args: FormatArgs) -> Result<TokenStream2, crate:

if let Some(cond) = fmt_args.condition {
Ok(quote!(({
enum __Foo_osRcTFl4A {}
enum __Fooosrctfl4a {}

// This is generic so that the constant is only evaluated when it's needed.
impl<T> __cf_osRcTFl4A::pmr::ConcatArgsIf<T, true> for __Foo_osRcTFl4A {
impl<T> __cf_osRcTFl4A::pmr::ConcatArgsIf<T, true> for __Fooosrctfl4a {
#[doc(hidden)]
const PARGUMENTS : &'static [__cf_osRcTFl4A::pmr::PArgument] = #fmt_if_true;
}

__cf_osRcTFl4A::__concatcp_inner!(
<__Foo_osRcTFl4A as __cf_osRcTFl4A::pmr::ConcatArgsIf<(), #cond>>::PARGUMENTS
<__Fooosrctfl4a as __cf_osRcTFl4A::pmr::ConcatArgsIf<(), #cond>>::PARGUMENTS
)
})))
} else {
Expand Down

0 comments on commit d9760d9

Please sign in to comment.