mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 17:28:09 +00:00
unwrap
This commit is contained in:
parent
9042bb7892
commit
864434137a
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ impl<'a, DB: HirDatabase> AssistCtx<'a, DB> {
|
|||
) -> Option<Assist> {
|
||||
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"
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue