Cleanup assert
This commit is contained in:
parent
b2ed130ffd
commit
e89ade3809
@ -84,11 +84,7 @@ pub(crate) fn add_assist(
|
|||||||
f: impl FnOnce(&mut AssistBuilder),
|
f: impl FnOnce(&mut AssistBuilder),
|
||||||
) -> Option<Assist> {
|
) -> Option<Assist> {
|
||||||
let label = AssistLabel { label: label.into(), id };
|
let label = AssistLabel { label: label.into(), id };
|
||||||
assert_eq!(
|
assert!(label.label.chars().nth(0).unwrap().is_uppercase());
|
||||||
label.label.chars().nth(0).and_then(|c| Some(c.is_uppercase())).unwrap(),
|
|
||||||
true,
|
|
||||||
"First character should be uppercase"
|
|
||||||
);
|
|
||||||
|
|
||||||
let assist = if self.should_compute_edit {
|
let assist = if self.should_compute_edit {
|
||||||
let action = {
|
let action = {
|
||||||
|
Loading…
Reference in New Issue
Block a user