forge
Explore
Log in

Don't you dare go Hollow

Clippy cloned_ref_to_slice_refs in rag_output round-trip test

Browse files at this commit

21a644ffabb87ec3083644356257d92bf3a746f9Ahmet Kaan GümüşParent: f78258e
  • test
    • clippy cloned_ref_to_slice_refs in rag_output round-trip test
Show full message
🧪 test: clippy cloned_ref_to_slice_refs in rag_output round-trip test
src/domain/rag_output.rsmodified+1 -1
@@ -231,7 +231,7 @@ mod tests {
231 .unwrap();231 .unwrap();
232 assert_eq!(read.get_payload()["summary"], "x");232 assert_eq!(read.get_payload()["summary"], "x");
233 assert_eq!(read.get_payload()["chunks"][0]["text"], "y");233 assert_eq!(read.get_payload()["chunks"][0]["text"], "y");
234- assert_eq!(read.get_sources(), &[file.clone()]);234+ assert_eq!(read.get_sources(), std::slice::from_ref(&file));
235 assert_eq!(read.get_course(), note.get_course());235 assert_eq!(read.get_course(), note.get_course());
236 236
237 let untouched = RagOutput::create(237 let untouched = RagOutput::create(