From e89ade38092a77f402698cb8a9dc0caaa5d4befa Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 14 Jan 2020 13:55:32 -0500 Subject: Cleanup assert --- crates/ra_assists/src/assist_ctx.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crates/ra_assists') diff --git a/crates/ra_assists/src/assist_ctx.rs b/crates/ra_assists/src/assist_ctx.rs index 1b626faaa..1a65b5dc0 100644 --- a/crates/ra_assists/src/assist_ctx.rs +++ b/crates/ra_assists/src/assist_ctx.rs @@ -84,11 +84,7 @@ impl<'a, DB: HirDatabase> AssistCtx<'a, DB> { f: impl FnOnce(&mut AssistBuilder), ) -> Option { let label = AssistLabel { label: label.into(), id }; - assert_eq!( - label.label.chars().nth(0).and_then(|c| Some(c.is_uppercase())).unwrap(), - true, - "First character should be uppercase" - ); + assert!(label.label.chars().nth(0).unwrap().is_uppercase()); let assist = if self.should_compute_edit { let action = { -- cgit v1.2.3