fix: add std::io imports and update finalize return type
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -6,6 +6,7 @@ use std::env;
|
||||
use std::process;
|
||||
use uzers::{get_current_uid, get_current_gid, get_current_username, get_current_groupname};
|
||||
use rusqlite::Connection;
|
||||
use std::io;
|
||||
|
||||
use crate::common::is_binary::is_binary;
|
||||
use crate::meta_plugin::MetaPlugin;
|
||||
@@ -493,9 +494,9 @@ impl MetaPlugin for FullHostnameMetaPlugin {
|
||||
true
|
||||
}
|
||||
|
||||
fn finalize(&mut self) -> io::Result<String> {
|
||||
// Since we save during initialize(), return empty to avoid duplicate saves
|
||||
Ok("".to_string())
|
||||
fn finalize(&mut self) -> Result<()> {
|
||||
// Since we save during initialize(), return Ok to avoid duplicate saves
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn update(&mut self, _data: &[u8]) {
|
||||
|
||||
Reference in New Issue
Block a user