fix: Resolve type mismatches for Option<FilterChain> and Option<&FilterChain>

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:46:51 -03:00
parent e34d0e315b
commit 0d575e8850
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ pub fn mode_get(
let (mut reader, _, _) = item_service.get_item_content_info_streaming_with_chain(
conn,
item_id,
filter_chain,
filter_chain.as_ref(),
)?;
if detect_binary {
@@ -69,7 +69,7 @@ pub fn mode_get(
let (new_reader, _, _) = item_service.get_item_content_info_streaming_with_chain(
conn,
item_id,
filter_chain,
filter_chain.as_ref(),
)?;
reader = new_reader;
}

View File

@@ -190,7 +190,7 @@ impl ItemService {
None
};
self.get_item_content_info_streaming_with_chain(conn, id, filter_chain)
self.get_item_content_info_streaming_with_chain(conn, id, filter_chain.as_ref())
}
pub fn get_item_content_info_streaming_with_chain(