Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
revert clippy allows
Browse files Browse the repository at this point in the history
  • Loading branch information
ggordonhall committed Feb 12, 2024
1 parent de0883d commit f3d8735
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/bleep/src/webserver/studio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ async fn generate_llm_context(
.map(|(i, s)| format!("{} {s}\n", i + 1))
.collect::<Vec<_>>();

#[allow(clippy::single_range_in_vec_init)]
let ranges = if file.ranges.is_empty() {
vec![0..lines.len()]
} else {
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit f3d8735

Please sign in to comment.