updated codegen match to leverage unused values

This commit is contained in:
KCaverly 2023-09-26 17:11:20 -04:00
parent e8dd412ac1
commit 90f17d4a28

View file

@ -123,7 +123,7 @@ pub fn generate_content_prompt(
} }
match kind { match kind {
CodegenKind::Generate { position } => { CodegenKind::Generate { position: _ } => {
writeln!( writeln!(
prompt, prompt,
"Assume the cursor is located where the `<|START|` marker is." "Assume the cursor is located where the `<|START|` marker is."
@ -140,7 +140,7 @@ pub fn generate_content_prompt(
) )
.unwrap(); .unwrap();
} }
CodegenKind::Transform { range } => { CodegenKind::Transform { range: _ } => {
writeln!( writeln!(
prompt, prompt,
"Modify the users code selected text based upon the users prompt: {user_prompt}" "Modify the users code selected text based upon the users prompt: {user_prompt}"