We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23b3ef4 commit ac461ccCopy full SHA for ac461cc
src/constance/src/utils.rs
@@ -2,8 +2,6 @@
2
//!
3
//! **This module is exempt from the API stability guarantee** unless specified
4
//! otherwise. It's exposed only because it's needed by macros.
5
-// FIXME: Work-around for `rust-analyzer` denying `false` in generic parameters
6
-#![allow(unused_braces)]
7
use core::marker::PhantomData;
8
9
/// Conditional type
@@ -33,9 +31,9 @@ pub trait TypeFn {
33
31
#[doc(hidden)]
34
32
pub struct Conditional<T, F, const B: bool>(PhantomData<(T, F)>);
35
36
-impl<T, F> TypeFn for Conditional<T, F, { false }> {
+impl<T, F> TypeFn for Conditional<T, F, false> {
37
type Output = F;
38
}
39
-impl<T, F> TypeFn for Conditional<T, F, { true }> {
+impl<T, F> TypeFn for Conditional<T, F, true> {
40
type Output = T;
41
0 commit comments