This commit is contained in:
Jeremy Kolb 2020-01-14 13:15:41 -05:00
parent 9042bb7892
commit 864434137a

View File

@ -85,8 +85,8 @@ impl<'a, DB: HirDatabase> AssistCtx<'a, DB> {
) -> Option<Assist> { ) -> Option<Assist> {
let label = AssistLabel { label: label.into(), id }; let label = AssistLabel { label: label.into(), id };
assert_eq!( assert_eq!(
label.label.chars().nth(0).and_then(|c| Some(c.is_uppercase())), label.label.chars().nth(0).and_then(|c| Some(c.is_uppercase())).unwrap(),
Some(true), true,
"First character should be uppercase" "First character should be uppercase"
); );