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:
@@ -53,7 +53,7 @@ pub fn mode_get(
|
|||||||
let (mut reader, _, _) = item_service.get_item_content_info_streaming_with_chain(
|
let (mut reader, _, _) = item_service.get_item_content_info_streaming_with_chain(
|
||||||
conn,
|
conn,
|
||||||
item_id,
|
item_id,
|
||||||
filter_chain,
|
filter_chain.as_ref(),
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
if detect_binary {
|
if detect_binary {
|
||||||
@@ -69,7 +69,7 @@ pub fn mode_get(
|
|||||||
let (new_reader, _, _) = item_service.get_item_content_info_streaming_with_chain(
|
let (new_reader, _, _) = item_service.get_item_content_info_streaming_with_chain(
|
||||||
conn,
|
conn,
|
||||||
item_id,
|
item_id,
|
||||||
filter_chain,
|
filter_chain.as_ref(),
|
||||||
)?;
|
)?;
|
||||||
reader = new_reader;
|
reader = new_reader;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ impl ItemService {
|
|||||||
None
|
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(
|
pub fn get_item_content_info_streaming_with_chain(
|
||||||
|
|||||||
Reference in New Issue
Block a user