diff --git a/src/constance/src/utils.rs b/src/constance/src/utils.rs index 449f72ac19..f7a78e5026 100644 --- a/src/constance/src/utils.rs +++ b/src/constance/src/utils.rs @@ -2,8 +2,6 @@ //! //! **This module is exempt from the API stability guarantee** unless specified //! otherwise. It's exposed only because it's needed by macros. -// FIXME: Work-around for `rust-analyzer` denying `false` in generic parameters -#![allow(unused_braces)] use core::marker::PhantomData; /// Conditional type @@ -33,9 +31,9 @@ pub trait TypeFn { #[doc(hidden)] pub struct Conditional(PhantomData<(T, F)>); -impl TypeFn for Conditional { +impl TypeFn for Conditional { type Output = F; } -impl TypeFn for Conditional { +impl TypeFn for Conditional { type Output = T; }