From 24ce52a1993d8092d62ea652c6020f85e6c1027d Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Fri, 24 Nov 2023 14:32:05 +0000 Subject: [PATCH] Add `Span` to `TraitBoundModifier` --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index 127aff913e3..8ca27150371 100644 --- a/src/types.rs +++ b/src/types.rs @@ -546,7 +546,7 @@ fn rewrite(&self, context: &RewriteContext<'_>, shape: Shape) -> Option ast::TraitBoundModifier::Maybe => poly_trait_ref .rewrite(context, shape.offset_left(1)?) .map(|s| format!("?{}", s)), - ast::TraitBoundModifier::MaybeConst => poly_trait_ref + ast::TraitBoundModifier::MaybeConst(_) => poly_trait_ref .rewrite(context, shape.offset_left(7)?) .map(|s| format!("~const {}", s)), ast::TraitBoundModifier::MaybeConstMaybe => poly_trait_ref