some changes

This commit is contained in:
jnyfah 2025-03-17 16:48:46 +01:00
parent 21ee875b4c
commit 78a6572616

View file

@ -61,10 +61,9 @@ pub(super) fn hints(
if arrow.is_none() { " -> " } else { "" },
)
} else {
let body = closure.body()?;
let body_range = body.syntax().text_range();
Some(config.lazy_text_edit(|| {
let body = closure.body();
let body_range = body.expect("Closure must have a body").syntax().text_range();
let mut builder = TextEdit::builder();
let insert_pos = param_list.syntax().text_range().end();