Clippy cloned_ref_to_slice_refs in rag_output round-trip test
Browse files at this commit21a644ffabb87ec3083644356257d92bf3a746f9Parent: f78258e- test
- clippy cloned_ref_to_slice_refs in rag_output round-trip test
1 changed file +1 -1
- src/domain/rag_output.rs +1 -1
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( |