From: Bennet Bleßmann Date: Thu, 31 Jul 2025 19:36:53 +0000 (+0200) Subject: ignore clippy::unbuffered_bytes in test helper functions X-Git-Tag: v0.10.0~35^2~1^2~13 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=166ec02973dc275ee4fe96779622ab7de3282548;p=scryer-prolog.git ignore clippy::unbuffered_bytes in test helper functions --- diff --git a/src/machine/mock_wam.rs b/src/machine/mock_wam.rs index 941ff81e..d157ee14 100644 --- a/src/machine/mock_wam.rs +++ b/src/machine/mock_wam.rs @@ -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 { let stream = Stream::from_owned_string( std::fs::read_to_string(AsRef::::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 { let stream = Stream::from_owned_string(code.to_owned(), &mut self.machine_st.arena);