refactor: Improve error handling and borrowing in item services

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-03 07:32:25 -03:00
parent 1bd3f95627
commit 426eff309b
3 changed files with 6 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ impl<R: Read> Read for FilteringReader<R> {
}
// Process through the filter chain if it exists
if let Some(chain) = &mut self.filter_chain {
if let Some(ref mut chain) = self.filter_chain {
// Use a cursor to read the input data
let mut input_cursor = std::io::Cursor::new(&temp_buf[..bytes_read]);
// Write filtered output to our buffer