diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs index dc3ab440be..1b626faaa1 100644 --- a/crates/ra_assists/src/assist_ctx.rs +++ b/crates/ra_assists/src/assist_ctx.rs @@ -85,8 +85,8 @@ impl<'a, DB: HirDatabase> AssistCtx<'a, DB> { ) -> Option { let label = AssistLabel { label: label.into(), id }; assert_eq!( - label.label.chars().nth(0).and_then(|c| Some(c.is_uppercase())), - Some(true), + label.label.chars().nth(0).and_then(|c| Some(c.is_uppercase())).unwrap(), + true, "First character should be uppercase" );