]> Repositorios git - scryer-prolog.git/commitdiff
ignore clippy::unbuffered_bytes in test helper functions
authorBennet Bleßmann <[email protected]>
Thu, 31 Jul 2025 19:36:53 +0000 (21:36 +0200)
committerBennet Bleßmann <[email protected]>
Thu, 31 Jul 2025 19:47:04 +0000 (21:47 +0200)
src/machine/mock_wam.rs

index 941ff81ebbd88ee848e05c8595e6367551f17a76..d157ee144ba95ae05b24cd8dc8a43153f2f36361 100644 (file)
@@ -249,6 +249,7 @@ pub(crate) fn parse_and_write_parsed_term_to_heap(
 
 impl Machine {
     /// For use in tests.
+    #[allow(clippy::unbuffered_bytes)]
     pub fn test_load_file(&mut self, file: &str) -> Vec<u8> {
         let stream = Stream::from_owned_string(
             std::fs::read_to_string(AsRef::<std::path::Path>::as_ref(file)).unwrap(),
@@ -260,6 +261,7 @@ impl Machine {
     }
 
     /// For use in tests.
+    #[allow(clippy::unbuffered_bytes)]
     pub fn test_load_string(&mut self, code: &str) -> Vec<u8> {
         let stream = Stream::from_owned_string(code.to_owned(), &mut self.machine_st.arena);