From f3d87359458c4cc42efe2f324906601cbba94647 Mon Sep 17 00:00:00 2001 From: Gabriel Gordon-Hall Date: Mon, 12 Feb 2024 12:03:51 +0000 Subject: [PATCH] revert clippy allows --- server/bleep/src/webserver/studio.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/bleep/src/webserver/studio.rs b/server/bleep/src/webserver/studio.rs index 90b2a617bb..42bdf3d98a 100644 --- a/server/bleep/src/webserver/studio.rs +++ b/server/bleep/src/webserver/studio.rs @@ -845,6 +845,7 @@ async fn generate_llm_context( .map(|(i, s)| format!("{} {s}\n", i + 1)) .collect::>(); + #[allow(clippy::single_range_in_vec_init)] let ranges = if file.ranges.is_empty() { vec![0..lines.len()] } else { @@ -1484,6 +1485,7 @@ pub async fn import( }; let imported_context = canonicalize_context(exchanges.iter().flat_map(|e| { + #[allow(clippy::single_range_in_vec_init)] e.code_chunks.iter().map(|c| ContextFile { repo: c.repo_path.repo.clone(), path: c.repo_path.path.clone(),