From c23edf0fb86795b24f237f6237c6449615750a2a Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Sat, 16 Aug 2025 14:26:32 -0300 Subject: [PATCH] refactor: rename saved_during_io to is_saved Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) --- src/meta_plugin/system.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meta_plugin/system.rs b/src/meta_plugin/system.rs index 6adcb22..e5ecf3e 100644 --- a/src/meta_plugin/system.rs +++ b/src/meta_plugin/system.rs @@ -23,7 +23,7 @@ pub struct BinaryMetaPlugin { meta_name: String, buffer: Vec, max_buffer_size: usize, - saved_during_io: bool, + is_saved: bool, item_id: Option, conn: Option<*mut Connection>, } @@ -34,7 +34,7 @@ impl BinaryMetaPlugin { meta_name: "binary".to_string(), buffer: Vec::new(), max_buffer_size: 4096, // 4KB - saved_during_io: false, + is_saved: false, item_id: None, conn: None, } @@ -53,7 +53,7 @@ impl MetaPlugin for BinaryMetaPlugin { fn finalize(&mut self) -> io::Result { // If we already saved during IO, don't save again - if self.saved_during_io { + if self.is_saved { // Return the current value to avoid errors, but it won't be saved again let is_binary = is_binary(&self.buffer); return Ok(if is_binary { "true".to_string() } else { "false".to_string() });