unwrap
This commit is contained in:
parent
9042bb7892
commit
864434137a
@ -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"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user